mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 14:17:08 +00:00
parent
cafeb14f1c
commit
26297b4035
|
@ -274,8 +274,16 @@ fn queries<'a>() -> Queries<
|
|||
// Hide deleted and removed for non-admins or mods
|
||||
if !is_mod_or_admin {
|
||||
query = query
|
||||
.filter(community::removed.eq(false))
|
||||
.filter(post::removed.eq(false))
|
||||
.filter(
|
||||
community::removed
|
||||
.eq(false)
|
||||
.or(post::creator_id.eq(person_id_join)),
|
||||
)
|
||||
.filter(
|
||||
post::removed
|
||||
.eq(false)
|
||||
.or(post::creator_id.eq(person_id_join)),
|
||||
)
|
||||
// users can see their own deleted posts
|
||||
.filter(
|
||||
community::deleted
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a36865ee8ca3658fea31ba948b67b75a812e84fc
|
||||
Subproject commit 277e3c335bbb9c00c4a600bd4d655b273393f84a
|
Loading…
Reference in a new issue