new filter: publish

This commit is contained in:
Andrew Dolgov 2007-08-09 14:39:59 +01:00
parent 0c4811be71
commit a36c0dfe23
1 changed files with 9 additions and 3 deletions

View File

@ -812,11 +812,17 @@
$marked = 'false'; $marked = 'false';
} }
if (find_article_filter($article_filters, 'publish')) {
$published = 'true';
} else {
$published = 'false';
}
$result = db_query($link, $result = db_query($link,
"INSERT INTO ttrss_user_entries "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, VALUES ('$ref_id', '$owner_uid', '$feed', $unread,
$last_read_qpart, $marked)"); $last_read_qpart, $marked, $published)");
} }
$post_needs_update = false; $post_needs_update = false;