client gate for sxyprn
This commit is contained in:
@@ -960,6 +960,7 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
|
|||||||
cacheDuration: 1800,
|
cacheDuration: 1800,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if clientversion >= ClientVersion::new(22, 105, "22i".to_string()) {
|
||||||
//sxyprn
|
//sxyprn
|
||||||
status.add_channel(Channel {
|
status.add_channel(Channel {
|
||||||
id: "sxyprn".to_string(),
|
id: "sxyprn".to_string(),
|
||||||
@@ -1022,7 +1023,7 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
|
|||||||
nsfw: true,
|
nsfw: true,
|
||||||
cacheDuration: 1800,
|
cacheDuration: 1800,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
status.iconUrl = format!("http://{}/favicon.ico", host).to_string();
|
status.iconUrl = format!("http://{}/favicon.ico", host).to_string();
|
||||||
Ok(web::HttpResponse::Ok().json(&status))
|
Ok(web::HttpResponse::Ok().json(&status))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user