fix: add topic uid to infinitescroll

v1.18.x
Barış Soner Uşaklı 4 years ago
parent c037779fa1
commit 6771ca150a

@ -15,7 +15,7 @@ module.exports = function (SocketTopics) {
const [userPrivileges, topicData] = await Promise.all([ const [userPrivileges, topicData] = await Promise.all([
privileges.topics.get(data.tid, socket.uid), 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)) { if (!userPrivileges['topics:read'] || (topicData.deleted && !userPrivileges.view_deleted)) {

Loading…
Cancel
Save