fix: stacks manage page when user deletes profile
add: allow moderators to view deleted posts
This commit is contained in:
parent
4c26879d00
commit
81307752c2
14 changed files with 211 additions and 29 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue