mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-12 15:34:00 +00:00
parent
7008848f9c
commit
b95bbe2fae
2 changed files with 2 additions and 2 deletions
|
@ -359,7 +359,7 @@ impl<'a> PostQueryBuilder<'a> {
|
|||
query = query.filter(post::creator_id.eq(creator_id));
|
||||
}
|
||||
|
||||
if !self.show_nsfw.unwrap_or(true) {
|
||||
if !self.show_nsfw.unwrap_or(false) {
|
||||
query = query
|
||||
.filter(post::nsfw.eq(false))
|
||||
.filter(community::nsfw.eq(false));
|
||||
|
|
|
@ -198,7 +198,7 @@ impl<'a> CommunityQueryBuilder<'a> {
|
|||
}
|
||||
};
|
||||
|
||||
if !self.show_nsfw.unwrap_or(true) {
|
||||
if !self.show_nsfw.unwrap_or(false) {
|
||||
query = query.filter(community::nsfw.eq(false));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue