diff options
author | Andrew Dolgov <[email protected]> | 2021-02-24 10:01:39 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-24 10:01:39 +0300 |
commit | 6ea1430a04b5df6dc01dc43a3354a00cd61c9174 (patch) | |
tree | 2992593d6ed37fc15cdc06c744bc8a529a8f22a6 | |
parent | e6505b7d83b8e25b507923feb86dc10e7954ed58 (diff) |
no special counter handling for catchupAll
-rwxr-xr-x | classes/feeds.php | 2 | ||||
-rw-r--r-- | 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(); }); |