From 97600ddd978e20dde613085ea03453ddd102b8fc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov <noreply@fakecake.org> Date: Mon, 19 Jan 2015 12:56:36 +0300 Subject: [PATCH] af_psql_trgm: allow dupe checking within one feed --- plugins/af_psql_trgm/init.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index a1ee040e8..95b78dec1 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -80,9 +80,6 @@ class Af_Psql_Trgm extends Plugin { print_notice("PostgreSQL trigram extension returns string similarity as a floating point number (0-1). Setting it too low might produce false positives, zero disables checking."); - print "<br/>"; - print_notice("Only data in other feeds is checked, i.e. sequential duplicate posts in one feed will not be detected by this plugin."); - print "<br/>"; print_notice("Enable the plugin for specific feeds in the feed editor."); @@ -112,11 +109,6 @@ class Af_Psql_Trgm extends Plugin { print "</div>"; } - //PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_EDIT_FEED, - // "hook_prefs_edit_feed", $feed_id); - // PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_SAVE_FEED, - // "hook_prefs_save_feed", $feed_id); - function hook_prefs_edit_feed($feed_id) { print "<div class=\"dlgSec\">".__("Similarity (pg_trgm)")."</div>"; print "<div class=\"dlgSecCont\">"; @@ -179,7 +171,6 @@ class Af_Psql_Trgm extends Plugin { $result = db_query("SELECT MAX(SIMILARITY(title, '$title_escaped')) AS ms FROM ttrss_entries, ttrss_user_entries WHERE ref_id = id AND date_entered >= NOW() - interval '1 day' AND - feed_id != $feed_id AND owner_uid = $owner_uid"); $similarity_result = db_fetch_result($result, 0, "ms");