UI for replies-to-post (needs theme update)

This commit is contained in:
Ben Lubar
2016-10-27 18:45:21 -05:00
parent a654a2a5fe
commit ea10f51f2e
4 changed files with 63 additions and 1 deletions

View File

@@ -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;