mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 23:59:46 +02:00
refactor: tab rules
This commit is contained in:
@@ -19,7 +19,7 @@ const socketHelpers = require('../socket.io/helpers');
|
||||
|
||||
module.exports = function (Posts) {
|
||||
Posts.getQueuedPosts = async (filter = {}, options = {}) => {
|
||||
options = { metadata: true, ...options }; // defaults
|
||||
options = { metadata: true, ...options }; // defaults
|
||||
let postData = _.cloneDeep(cache.get('post-queue'));
|
||||
if (!postData) {
|
||||
const ids = await db.getSortedSetRange('post:queue', 0, -1);
|
||||
|
||||
@@ -206,7 +206,7 @@ module.exports = function (Posts) {
|
||||
let current = voteStatus.upvoted ? 'upvote' : 'downvote';
|
||||
if (unvote) { // e.g. unvoting, removing a upvote or downvote
|
||||
hook = 'unvote';
|
||||
} else { // e.g. User *has not* voted, clicks upvote or downvote
|
||||
} else { // e.g. User *has not* voted, clicks upvote or downvote
|
||||
current = 'unvote';
|
||||
}
|
||||
// action:post.upvote
|
||||
|
||||
Reference in New Issue
Block a user