From: Andrew Dolgov Date: Thu, 9 Aug 2007 13:39:59 +0000 (+0100) Subject: new filter: publish X-Git-Tag: 1.2.14~113 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a36c0dfe23e56d87ab2db2179e034706fc603318;p=tt-rss.git new filter: publish --- diff --git a/functions.php b/functions.php index 709e2b8e..ff64a0a7 100644 --- a/functions.php +++ b/functions.php @@ -811,12 +811,18 @@ } else { $marked = 'false'; } - + + if (find_article_filter($article_filters, 'publish')) { + $published = 'true'; + } else { + $published = 'false'; + } + $result = db_query($link, "INSERT INTO ttrss_user_entries - (ref_id, owner_uid, feed_id, unread, last_read, marked) + (ref_id, owner_uid, feed_id, unread, last_read, marked, published) VALUES ('$ref_id', '$owner_uid', '$feed', $unread, - $last_read_qpart, $marked)"); + $last_read_qpart, $marked, $published)"); } $post_needs_update = false;