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