mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: add topic uid to infinitescroll
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user