related: do not consider negative scored headlines

This commit is contained in:
Andrew Dolgov 2015-01-19 18:18:03 +03:00
parent d806953471
commit 94238b143a
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class Af_Psql_Trgm extends Plugin {
ttrss_entries.id = ref_id AND ttrss_entries.id = ref_id AND
ttrss_user_entries.owner_uid = $owner_uid AND ttrss_user_entries.owner_uid = $owner_uid AND
ttrss_entries.id != $id AND ttrss_entries.id != $id AND
score >= 0 AND
date_entered >= NOW() - INTERVAL '2 weeks' date_entered >= NOW() - INTERVAL '2 weeks'
ORDER BY ORDER BY
sm DESC, date_entered DESC sm DESC, date_entered DESC