add: post full unlist option
This commit is contained in:
parent
bdd8f9a869
commit
14f3bf849e
6 changed files with 45 additions and 3 deletions
|
@ -308,6 +308,10 @@ pub struct UserSettings {
|
|||
/// be shown in the UI (or API).
|
||||
#[serde(default)]
|
||||
pub hide_from_social_lists: bool,
|
||||
/// Automatically hide your posts from all timelines except your profile
|
||||
/// and the following timeline.
|
||||
#[serde(default)]
|
||||
pub auto_full_unlist: bool,
|
||||
}
|
||||
|
||||
fn mime_avif() -> String {
|
||||
|
|
|
@ -190,6 +190,8 @@ pub struct PostContext {
|
|||
pub content_warning: String,
|
||||
#[serde(default)]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub full_unlist: bool,
|
||||
}
|
||||
|
||||
fn default_comments_enabled() -> bool {
|
||||
|
@ -218,6 +220,7 @@ impl Default for PostContext {
|
|||
reactions_enabled: default_reactions_enabled(),
|
||||
content_warning: String::new(),
|
||||
tags: Vec::new(),
|
||||
full_unlist: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue