1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-30 00:01:28 +00:00

add archive_article()

This commit is contained in:
Andrew Dolgov
2009-12-28 19:30:34 +03:00
parent 24902606eb
commit 16fdac16c0
2 changed files with 35 additions and 4 deletions

View File

@@ -120,11 +120,11 @@
}
if ($subop == "archive") {
$ids = db_escape_string($_GET["ids"]);
$ids = split(",", db_escape_string($_GET["ids"]));
$result = db_query($link, "UPDATE ttrss_user_entries
SET orig_feed_id = feed_id, feed_id = NULL, marked = true
WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]);
foreach ($ids as $id) {
archive_article($link, $id, $_SESSION["uid"]);
}
print "<rpc-reply><counters>";
getGlobalCounters($link);