]> git.wh0rd.org Git - tt-rss.git/commitdiff
related: do not consider negative scored headlines
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 19 Jan 2015 15:18:03 +0000 (18:18 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 19 Jan 2015 15:18:03 +0000 (18:18 +0300)
plugins/af_psql_trgm/init.php

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