mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
24 lines
447 B
JavaScript
24 lines
447 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',
|
|
};
|
|
};
|