web & server: using tantivy for news post search
This commit is contained in:
@@ -3,7 +3,10 @@ SELECT
|
||||
FROM
|
||||
post
|
||||
WHERE
|
||||
($1::text IS NULL OR site = $1)
|
||||
(
|
||||
$1 :: text IS NULL
|
||||
OR site = $1
|
||||
)
|
||||
AND (
|
||||
NOT $2
|
||||
OR NOT is_read
|
||||
|
||||
Reference in New Issue
Block a user