From 6ea1430a04b5df6dc01dc43a3354a00cd61c9174 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Feb 2021 10:01:39 +0300 Subject: [PATCH] no special counter handling for catchupAll --- classes/feeds.php | 2 ++ js/Feeds.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index 631ba0915..d32c19d5d 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -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() { diff --git a/js/Feeds.js b/js/Feeds.js index e40d31087..d4bdd01b6 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -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(); });