]> git.wh0rd.org Git - tt-rss.git/commitdiff
mailto plugin: only mail unique articles
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 2 Jul 2014 05:57:23 +0000 (09:57 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 2 Jul 2014 05:57:23 +0000 (09:57 +0400)
plugins/mailto/init.php

index aa6d173f82ebe8b5824a7b0c4eff44f30df193e7..05d0daaa205ebb60320038fb801152eb4ea501e9 100644 (file)
@@ -41,7 +41,7 @@ class MailTo extends Plugin {
                $tpl->setVariable('TTRSS_HOST', $_SERVER["HTTP_HOST"], true);
 
 
-               $result = db_query("SELECT link, content, title
+               $result = db_query("SELECT DISTINCT link, content, title
                        FROM ttrss_user_entries, ttrss_entries WHERE id = ref_id AND
                        id IN ($param) AND owner_uid = " . $_SESSION["uid"]);