You shouldn't need to link again, you should only have to run ./nodebb build -d && ./nodebb dev after you make a change.
You can also use grunt to automatically build and restart after making changes.
Is possible approval topic before posting it? If so, how?
@terminetor1717 Under the category and the privlidges menu tick "moderate"
@Duke moderate is permission for moderate topic no for approval topic
is possible ability for one category?
@terminetor1717 I dont get it, can you explain the difference? Arn't they the same thing?
@duke Right now if you enable post approval queue, all posts from new users will be sent to the queue irrespective of the category it's posted in. He/she wants to only enable that for one specific category and not the entire forum.
@pichalite yes! Is possibile?
@terminetor1717 yes it's possible but not without writing code.
@pichalite said in Approval Topic:
yes it's possible but not without writing code.
does not exist a plugin?
@baris @psychobunny @pichalite
a new hook in Posts.shouldQueue method could be usefull
Example:
Posts.shouldQueue = function (uid, data, callback) {
async.waterfall([
function (next) {
user.getUserFields(uid, ['reputation', 'postcount'], next);
},
function (userData, next) {
var shouldQueue = parseInt(meta.config.postQueue, 10) === 1 && (!parseInt(uid, 10) || (parseInt(userData.reputation, 10) <= 0 && parseInt(userData.postcount, 10) <= 0));
next(null, shouldQueue);
},
//Here a plugin could alter the value of shouldQueue
function(shouldQueue, next) {
plugins.fireHook('filter:post.shouldQueue', {uid:uid, data: data}, next);
},
], callback);
};