From: Andrew Dolgov Date: Wed, 2 Jul 2014 05:57:23 +0000 (+0400) Subject: mailto plugin: only mail unique articles X-Git-Tag: 1.13~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=18c1b21d28d337a54fc5805c2367ccf6650f75aa;p=tt-rss.git mailto plugin: only mail unique articles --- diff --git a/plugins/mailto/init.php b/plugins/mailto/init.php index aa6d173f..05d0daaa 100644 --- a/plugins/mailto/init.php +++ b/plugins/mailto/init.php @@ -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"]);