no special counter handling for catchupAll

This commit is contained in:
Andrew Dolgov 2021-02-24 10:01:39 +03:00
parent e6505b7d83
commit 6ea1430a04
2 changed files with 3 additions and 2 deletions

View File

@ -404,6 +404,8 @@ class Feeds extends Handler_Protected {
$sth = $this->pdo->prepare("UPDATE ttrss_user_entries SET
last_read = NOW(), unread = false WHERE unread = true AND owner_uid = ?");
$sth->execute([$_SESSION['uid']]);
print json_encode(array("message" => "UPDATE_COUNTERS"));
}
function view() {

View File

@ -395,8 +395,7 @@ const Feeds = {
Notify.progress("Marking all feeds as read...");
xhr.post("backend.php", {op: "feeds", method: "catchupAll"}, () => {
this.requestCounters();
xhr.json("backend.php", {op: "feeds", method: "catchupAll"}, () => {
this.reloadCurrent();
});