mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 21:44:07 +08:00
14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
const { APIError } = require('errors');
|
|
|
|
// ErrSpam is sent during a `CreateComment` mutation where
|
|
// `input.checkSpam` is set to true and the comment contains
|
|
// detected spam as determined by the akismet service.
|
|
const ErrSpam = new APIError('Comment is spam', {
|
|
status: 400,
|
|
translation_key: 'COMMENT_IS_SPAM',
|
|
});
|
|
|
|
module.exports = {
|
|
ErrSpam,
|
|
};
|