twitterchiver/viewer: restrict viewing to on_timeline tweets
We want to only display tweets in the search view that was in timeline, but we do store entries in user_accounts_tweets for ACL purposes for replies/quote tweets.
This commit is contained in:
parent
50895e2aa3
commit
be71055ea1
1 changed files with 1 additions and 0 deletions
|
@ -193,6 +193,7 @@ INNER JOIN
|
||||||
INNER JOIN tweets t ON t.id=uat.tweetid
|
INNER JOIN tweets t ON t.id=uat.tweetid
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
AND ua.username=$1
|
AND ua.username=$1
|
||||||
|
AND uat.on_timeline
|
||||||
AND ($3::bigint=0 OR t.id <= $3::bigint)
|
AND ($3::bigint=0 OR t.id <= $3::bigint)
|
||||||
AND ($4='' OR ($4<>'' AND (to_tsvector('english', text) @@ to_tsquery('english', $4) OR to_tsvector('english', object->'retweeted_status'->>'full_text') @@ to_tsquery('english', $4) OR object->'user'->>'screen_name'=$4)))
|
AND ($4='' OR ($4<>'' AND (to_tsvector('english', text) @@ to_tsquery('english', $4) OR to_tsvector('english', object->'retweeted_status'->>'full_text') @@ to_tsquery('english', $4) OR object->'user'->>'screen_name'=$4)))
|
||||||
ORDER BY t.id DESC
|
ORDER BY t.id DESC
|
||||||
|
|
Loading…
Reference in a new issue