refactor: The update checker has become the announcements checker

Replaces June's endpoint with a continuwuity endpoint.
Adds a JSON schema.

Closes #89
Closes #760
This commit is contained in:
Jade Ellis 2025-04-20 19:30:02 +01:00
parent 5486dbda24
commit 2d9bdc0979
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
12 changed files with 238 additions and 166 deletions

View file

@ -127,7 +127,9 @@ impl Service {
&self.server.config.new_user_displayname_suffix
}
pub fn allow_check_for_updates(&self) -> bool { self.server.config.allow_check_for_updates }
pub fn allow_announcements_check(&self) -> bool {
self.server.config.allow_announcements_check
}
pub fn trusted_servers(&self) -> &[OwnedServerName] { &self.server.config.trusted_servers }