Skip to content

Node.js based forum software built for the modern web

change queue logic, if user has negative rep always queue their post

Barış Soner Uşaklı112b5c861aa8
diff --git a/src/posts/queue.js b/src/posts/queue.js
index 8c80e4125f..7dd311aa74 100644
--- a/src/posts/queue.js
+++ b/src/posts/queue.js
@@ -18,7 +18,7 @@ module.exports = function (Posts) {
user.getUserFields(uid, ['uid', 'reputation', 'postcount'], next);
},
function (userData, next) {
- var shouldQueue = meta.config.postQueue && (!userData.uid || (userData.reputation <= 0 && userData.postcount <= 0));
+ var shouldQueue = meta.config.postQueue && (!userData.uid || userData.reputation < 0 || userData.postcount <= 0);
plugins.fireHook('filter:post.shouldQueue', {
shouldQueue: shouldQueue,
uid: uid,