add: post tags
This commit is contained in:
parent
efeb660de6
commit
8c3024cb40
13 changed files with 180 additions and 34 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue