add: post editing, profile pinned posts, theme settings

TODO: nsfw profile/community options
This commit is contained in:
trisua 2025-04-07 16:07:01 -04:00
parent 31f63c90cd
commit f83cfa3756
10 changed files with 255 additions and 8 deletions

View file

@ -167,6 +167,10 @@ pub struct PostContext {
pub comments_enabled: bool,
#[serde(default)]
pub is_pinned: bool,
#[serde(default)]
pub is_profile_pinned: bool,
#[serde(default)]
pub edited: usize,
}
fn default_comments_enabled() -> bool {
@ -178,6 +182,8 @@ impl Default for PostContext {
Self {
comments_enabled: default_comments_enabled(),
is_pinned: false,
is_profile_pinned: false,
edited: 0,
}
}
}