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