mailto plugin: only mail unique articles

This commit is contained in:
Andrew Dolgov 2014-07-02 09:57:23 +04:00
parent d7482a503a
commit 18c1b21d28
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class MailTo extends Plugin {
$tpl->setVariable('TTRSS_HOST', $_SERVER["HTTP_HOST"], true); $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 FROM ttrss_user_entries, ttrss_entries WHERE id = ref_id AND
id IN ($param) AND owner_uid = " . $_SESSION["uid"]); id IN ($param) AND owner_uid = " . $_SESSION["uid"]);