mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
UI for replies-to-post (needs theme update)
This commit is contained in:
@@ -118,6 +118,13 @@ SocketPosts.getPidIndex = function (socket, data, callback) {
|
||||
posts.getPidIndex(data.pid, data.tid, data.topicPostSort, callback);
|
||||
};
|
||||
|
||||
SocketPosts.getReplies = function (socket, pid, callback) {
|
||||
if (!utils.isNumber(pid)) {
|
||||
return callback(new Error('[[error:invalid-data]'));
|
||||
}
|
||||
|
||||
posts.getPostSummariesFromSet('pid:' + pid + ':replies', socket.uid, 0, -1, callback);
|
||||
};
|
||||
|
||||
|
||||
module.exports = SocketPosts;
|
||||
|
||||
Reference in New Issue
Block a user