From 6771ca150aca7c6b6ae45e957dd747c96dd8d4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 25 Nov 2020 18:07:40 -0500 Subject: [PATCH] fix: add topic uid to infinitescroll --- src/socket.io/topics/infinitescroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/topics/infinitescroll.js b/src/socket.io/topics/infinitescroll.js index 361ecefdb6..e28ecf3502 100644 --- a/src/socket.io/topics/infinitescroll.js +++ b/src/socket.io/topics/infinitescroll.js @@ -15,7 +15,7 @@ module.exports = function (SocketTopics) { const [userPrivileges, topicData] = await Promise.all([ privileges.topics.get(data.tid, socket.uid), - topics.getTopicFields(data.tid, ['postcount', 'deleted']), + topics.getTopicFields(data.tid, ['postcount', 'deleted', 'uid']), ]); if (!userPrivileges['topics:read'] || (topicData.deleted && !userPrivileges.view_deleted)) {