From cddac03a5f8ceef7fd4121c01a65a5590726be2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 26 Sep 2023 11:51:18 -0400 Subject: [PATCH] fix: change priv to topics:read --- src/topics/unread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/unread.js b/src/topics/unread.js index c1666f7d91..9c6d2c35c2 100644 --- a/src/topics/unread.js +++ b/src/topics/unread.js @@ -318,7 +318,7 @@ module.exports = function (Topics) { Topics.markAllRead = async function (uid) { const cutoff = await Topics.unreadCutoff(uid); let tids = await db.getSortedSetRevRangeByScore('topics:recent', 0, -1, '+inf', cutoff); - tids = await privileges.topics.filterTids('read', tids, uid); + tids = await privileges.topics.filterTids('topics:read', tids, uid); Topics.markTopicNotificationsRead(tids, uid); await Topics.markAsRead(tids, uid); await db.delete(`uid:${uid}:tids_unread`);