Files
talk/services/moderation/phases/premod.js
T
2018-01-22 16:11:13 -07:00

16 lines
421 B
JavaScript

// This phase checks to see if the settings have premod enabled, if they do,
// the comment is premod, otherwise, it's just none.
module.exports = (ctx, comment, { asset: { settings: { moderation } } }) => {
// If the settings say that we're in premod mode, then the comment is in
// premod status.
if (moderation === 'PRE') {
return {
status: 'PREMOD',
};
}
return {
status: 'NONE',
};
};