add: communities is_forum

This commit is contained in:
trisua 2025-08-02 17:29:26 -04:00
parent 9a128a3f0c
commit 1f545a0b21
9 changed files with 52 additions and 4 deletions

View file

@ -26,6 +26,7 @@ pub struct Community {
pub member_count: usize,
pub is_forge: bool,
pub post_count: usize,
pub is_forum: bool,
}
impl Community {
@ -48,6 +49,7 @@ impl Community {
member_count: 0,
is_forge: false,
post_count: 0,
is_forum: false,
}
}
@ -68,6 +70,7 @@ impl Community {
member_count: 0,
is_forge: false,
post_count: 0,
is_forum: false,
}
}
}
@ -515,3 +518,13 @@ impl PollVote {
}
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct ForumTopic {
pub id: usize,
pub created: usize,
pub owner: usize,
pub community: usize,
pub title: String,
pub description: String,
}