add: purge/restore post api
This commit is contained in:
parent
81307752c2
commit
dd4f8b6d58
6 changed files with 102 additions and 4 deletions
|
@ -178,6 +178,10 @@ impl DataManager {
|
|||
let mut seen_user_follow_statuses: HashMap<(usize, usize), bool> = HashMap::new();
|
||||
|
||||
for post in posts {
|
||||
if post.is_deleted {
|
||||
continue;
|
||||
}
|
||||
|
||||
let owner = post.owner;
|
||||
|
||||
if ignore_users.contains(&owner) {
|
||||
|
@ -274,6 +278,10 @@ impl DataManager {
|
|||
let mut seen_user_follow_statuses: HashMap<(usize, usize), bool> = HashMap::new();
|
||||
|
||||
for post in posts {
|
||||
if post.is_deleted {
|
||||
continue;
|
||||
}
|
||||
|
||||
let owner = post.owner;
|
||||
|
||||
if ignore_users.contains(&owner) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue