diff options
author | Andrew Dolgov <[email protected]> | 2007-08-09 14:39:59 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-09 14:39:59 +0100 |
commit | a36c0dfe23e56d87ab2db2179e034706fc603318 (patch) | |
tree | 58669b7664f34a113cd3bcd569223749048f1b37 | |
parent | 0c4811be712318a19176b68fb77f0cd3a5b6eb29 (diff) |
new filter: publish
-rw-r--r-- | functions.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 709e2b8e2..ff64a0a70 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; |