summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclasses/feeds.php2
-rw-r--r--js/Feeds.js3
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();
});