fix: stacks manage page when user deletes profile

add: allow moderators to view deleted posts
This commit is contained in:
trisua 2025-05-16 16:09:21 -04:00
parent 4c26879d00
commit 81307752c2
14 changed files with 211 additions and 29 deletions

View file

@ -238,6 +238,8 @@ pub struct Post {
pub comment_count: usize,
/// IDs of all uploads linked to this post.
pub uploads: Vec<usize>,
/// If the post was deleted.
pub is_deleted: bool,
}
impl Post {
@ -260,6 +262,7 @@ impl Post {
dislikes: 0,
comment_count: 0,
uploads: Vec::new(),
is_deleted: false,
}
}