mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
Check whether the user can read the replies and allow filtering the reply count in plugins
This commit is contained in:
@@ -127,6 +127,9 @@ SocketPosts.getReplies = function (socket, pid, callback) {
|
||||
function (next) {
|
||||
posts.getPidsFromSet('pid:' + pid + ':replies', 0, -1, false, next);
|
||||
},
|
||||
function (pids, next) {
|
||||
privileges.posts.filter('read', pids, socket.uid, next);
|
||||
},
|
||||
function (pids, next) {
|
||||
async.parallel({
|
||||
posts: function (next) {
|
||||
|
||||
Reference in New Issue
Block a user