add: post warnings
This commit is contained in:
parent
24cf61c783
commit
71d017693c
8 changed files with 151 additions and 12 deletions
|
@ -584,7 +584,7 @@ impl DataManager {
|
|||
let res = query_rows!(
|
||||
&conn,
|
||||
&format!(
|
||||
"SELECT * FROM posts WHERE (community = {} {query_string}) AND replying_to = 0 ORDER BY created DESC LIMIT $1 OFFSET $2",
|
||||
"SELECT * FROM posts WHERE (community = {} {query_string}) AND NOT context LIKE '%\"is_nsfw\":true%' AND replying_to = 0 ORDER BY created DESC LIMIT $1 OFFSET $2",
|
||||
first.community
|
||||
),
|
||||
&[&(batch as i64), &((page * batch) as i64)],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue