add: finish forge stuff

This commit is contained in:
trisua 2025-06-10 22:02:06 -04:00
parent 53fb4d5778
commit 68071b96c8
21 changed files with 329 additions and 18 deletions

View file

@ -258,6 +258,8 @@ pub struct Post {
pub poll_id: usize,
/// The title of the post (in communities where titles are enabled).
pub title: String,
/// If the post is "open". Posts can act as tickets in a forge community.
pub is_open: bool,
}
impl Post {
@ -284,6 +286,7 @@ impl Post {
is_deleted: false,
poll_id,
title: String::new(),
is_open: true,
}
}