mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 09:31:17 +01:00
refactor: remove uncessary check
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function (Posts) {
|
|||||||
fields: fields,
|
fields: fields,
|
||||||
});
|
});
|
||||||
result.posts.forEach(post => modifyPost(post, fields));
|
result.posts.forEach(post => modifyPost(post, fields));
|
||||||
return Array.isArray(result.posts) ? result.posts : null;
|
return result.posts;
|
||||||
};
|
};
|
||||||
|
|
||||||
Posts.getPostData = async function (pid) {
|
Posts.getPostData = async function (pid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user