Add federation webpage to society; fix dead link on home page

This commit is contained in:
NG (Graham) committed 2026-07-18 00:32:28 -04:00
1 parent 147a07c338
commit d9787734dc
11 files changed
+199 -3

No files matched your search

+14
View File
@@ -703,6 +703,7 @@ pub trait WebUser: CommonUser {
async fn account_stats(&self) -> Result<AccountWebStats, Box<dyn std::error::Error>>;
async fn sanction_stats(&self) -> Result<SanctionWebStats, Box<dyn std::error::Error>>;
async fn social_stats(&self) -> Result<SocialWebStats, Box<dyn std::error::Error>>;
async fn fedi_info(&self) -> Result<FederationWebData, Box<dyn std::error::Error>>;
}
pub struct GarageWebInfo {
@@ -749,6 +750,19 @@ pub struct SocialWebStats {
pub chats: Vec<String>,
}
pub struct FederationWebData {
pub federations: Vec<FederationWebDetails>,
}
pub struct FederationWebDetails {
pub id: i32,
pub domain: String,
pub auth: String,
pub society: String,
pub last_used: i64,
pub first_used: i64,
}
#[async_trait::async_trait]
pub trait Userless: Send + Sync {
async fn lobby_state_listener(&self) -> Result<super::IntercomListener<super::intercom::IntercomLobbyStateMessage>, reqwest_websocket::Error>;