mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 11:04:05 +08:00
16 lines
421 B
JavaScript
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',
|
|
};
|
|
};
|