client gate for sxyprn

This commit is contained in:
Simon
2025-09-05 05:38:18 +00:00
parent 8a57d0c2bf
commit 436e33d015

View File

@@ -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))
}