add: post tags

This commit is contained in:
trisua 2025-05-08 20:08:43 -04:00
parent efeb660de6
commit 8c3024cb40
13 changed files with 180 additions and 34 deletions

View file

@ -174,6 +174,8 @@ pub struct PostContext {
pub reactions_enabled: bool,
#[serde(default)]
pub content_warning: String,
#[serde(default)]
pub tags: Vec<String>,
}
fn default_comments_enabled() -> bool {
@ -201,6 +203,7 @@ impl Default for PostContext {
answering: 0,
reactions_enabled: default_reactions_enabled(),
content_warning: String::new(),
tags: Vec::new(),
}
}
}