add: nsfw marker for posts/communities
This commit is contained in:
parent
f83cfa3756
commit
51534fbd52
8 changed files with 49 additions and 7 deletions
|
@ -133,7 +133,7 @@ impl DataManager {
|
|||
|
||||
let res = query_rows!(
|
||||
&conn,
|
||||
"SELECT * FROM communities ORDER BY member_count DESC LIMIT 12",
|
||||
"SELECT * FROM communities WHERE NOT context LIKE '%\"is_nsfw\":true%' ORDER BY member_count DESC LIMIT 12",
|
||||
empty,
|
||||
|x| { Self::get_community_from_row(x) }
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue