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)) {