Skip to content

Commit

Permalink
fix: change priv to topics:read
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Sep 26, 2023
1 parent 77d6d0a commit cddac03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topics/unread.js
Expand Up @@ -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`);
Expand Down

0 comments on commit cddac03

Please sign in to comment.