1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 22:35:57 +00:00

new feed action: clear articles

This commit is contained in:
Andrew Dolgov
2007-08-26 05:13:50 +01:00
parent bc0f078560
commit d1f0c58498
5 changed files with 55 additions and 2 deletions

View File

@@ -4696,4 +4696,12 @@
return $url_path;
}
function clear_feed_articles($link, $id) {
$result = db_query($link, "DELETE FROM ttrss_user_entries
WHERE feed_id = '$id' AND marked = false");
$result = db_query($link, "DELETE FROM ttrss_entries WHERE
(SELECT COUNT(int_id) FROM ttrss_user_entries WHERE ref_id = id) = 0");
}
?>