mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 00:56:13 +01:00
fix: #7789
This commit is contained in:
@@ -16,7 +16,7 @@ var socketHelpers = require('../socket.io/helpers');
|
||||
module.exports = function (Posts) {
|
||||
Posts.shouldQueue = async function (uid, data) {
|
||||
const userData = await user.getUserFields(uid, ['uid', 'reputation', 'postcount']);
|
||||
const shouldQueue = meta.config.postQueue && (!userData.uid || userData.reputation < meta.config.newbiePostDelayThreshold || userData.postcount <= 0);
|
||||
const shouldQueue = meta.config.postQueue && (!userData.uid || userData.reputation < meta.config.postQueueReputationThreshold || userData.postcount <= 0);
|
||||
const result = await plugins.fireHook('filter:post.shouldQueue', {
|
||||
shouldQueue: !!shouldQueue,
|
||||
uid: uid,
|
||||
|
||||
Reference in New Issue
Block a user