1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 21:25:55 +00:00

rpc mark/pub return proper counters, rework all_counters_callback

This commit is contained in:
Andrew Dolgov
2007-08-20 13:58:11 +01:00
parent 2fe69e2292
commit 36e05046e0
3 changed files with 18 additions and 4 deletions

View File

@@ -68,7 +68,13 @@
$result = db_query($link, "UPDATE ttrss_user_entries SET marked = $mark
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
print "<rpc-reply><mark>$id</mark></rpc-reply>";
print "<rpc-reply><counters>";
getGlobalCounters($link);
getLabelCounters($link);
if (get_pref($link, 'ENABLE_FEED_CATS')) {
getCategoryCounters($link);
}
print "</counters></rpc-reply>";
}
@@ -87,7 +93,13 @@
$result = db_query($link, "UPDATE ttrss_user_entries SET published = $pub
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
print "<rpc-reply><pub>$id</pub></rpc-reply>";
print "<rpc-reply><counters>";
getGlobalCounters($link);
getLabelCounters($link);
if (get_pref($link, 'ENABLE_FEED_CATS')) {
getCategoryCounters($link);
}
print "</counters></rpc-reply>";
}