add: post warnings
This commit is contained in:
parent
24cf61c783
commit
71d017693c
8 changed files with 151 additions and 12 deletions
|
@ -178,6 +178,8 @@ pub struct PostContext {
|
|||
pub answering: usize,
|
||||
#[serde(default = "default_reactions_enabled")]
|
||||
pub reactions_enabled: bool,
|
||||
#[serde(default)]
|
||||
pub content_warning: String,
|
||||
}
|
||||
|
||||
fn default_comments_enabled() -> bool {
|
||||
|
@ -204,6 +206,7 @@ impl Default for PostContext {
|
|||
repost: None,
|
||||
answering: 0,
|
||||
reactions_enabled: default_reactions_enabled(),
|
||||
content_warning: String::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue