add: move new block feature to a setting
This commit is contained in:
parent
d6348f7d67
commit
d90b08720a
4 changed files with 32 additions and 6 deletions
|
@ -89,11 +89,14 @@ impl DataManager {
|
|||
&self,
|
||||
initiator: usize,
|
||||
associated: &Vec<usize>,
|
||||
do_associated: bool,
|
||||
) -> Vec<usize> {
|
||||
let mut associated_str = String::new();
|
||||
|
||||
for id in associated {
|
||||
associated_str.push_str(&(" OR initiator = ".to_string() + &id.to_string()));
|
||||
if do_associated {
|
||||
for id in associated {
|
||||
associated_str.push_str(&(" OR initiator = ".to_string() + &id.to_string()));
|
||||
}
|
||||
}
|
||||
|
||||
// ...
|
||||
|
|
|
@ -273,6 +273,9 @@ pub struct UserSettings {
|
|||
/// Disable achievements.
|
||||
#[serde(default)]
|
||||
pub disable_achievements: bool,
|
||||
/// Automatically hide users that you've blocked on your other accounts from your timelines.
|
||||
#[serde(default)]
|
||||
pub hide_associated_blocked_users: bool,
|
||||
}
|
||||
|
||||
fn mime_avif() -> String {
|
||||
|
@ -561,7 +564,7 @@ impl AchievementName {
|
|||
Self::Enable2fa => "Locked in",
|
||||
Self::EditNote => "I take it back!",
|
||||
Self::CreatePostWithTitle => "Must declutter",
|
||||
Self::CreateRepost => "More than a like or a comment...",
|
||||
Self::CreateRepost => "More than a like or comment...",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue