From 94238b143a031d731341e1e344e7032f19f397ca Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 19 Jan 2015 18:18:03 +0300 Subject: [PATCH] related: do not consider negative scored headlines --- plugins/af_psql_trgm/init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index 559a5a71..02a0faba 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -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 -- 2.39.5