mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
Revert "feat: add reply count to getPostSummaryByPids"
This reverts commit de0f4aadb8.
This commit is contained in:
@@ -53,11 +53,6 @@ module.exports = function (Posts) {
|
||||
data.pid = pid;
|
||||
plugins.fireHook('action:post.setFields', { data: data });
|
||||
};
|
||||
|
||||
Posts.getReplyCount = async function (pid) {
|
||||
// const keys = pids.map(pid => 'pid:' +pid + ':replies');
|
||||
return await db.sortedSetCard(`pid:${pid}:replies`);
|
||||
};
|
||||
};
|
||||
|
||||
function modifyPost(post, fields) {
|
||||
|
||||
Reference in New Issue
Block a user