mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-04-12 15:38:20 +02:00
feat: small fixes
This commit is contained in:
@@ -86,12 +86,7 @@ module.exports = function (Posts) {
|
||||
|
||||
Posts.hasBookmarked = function (pid, uid, callback) {
|
||||
if (parseInt(uid, 10) <= 0) {
|
||||
if (Array.isArray(pid)) {
|
||||
callback(null, pid.map(() => false));
|
||||
} else {
|
||||
callback(null, false);
|
||||
}
|
||||
return;
|
||||
return callback(null, Array.isArray(pid) ? pid.map(() => false) : false);
|
||||
}
|
||||
|
||||
if (Array.isArray(pid)) {
|
||||
|
||||
Reference in New Issue
Block a user