diff --git a/static/app-strings.json b/static/app-strings.json index f3deb8d4a..665dd3884 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1453,6 +1453,7 @@ "Unable to comment. This channel has blocked you.": "Unable to comment. This channel has blocked you.", "Unable to comment. Your channel has been blocked by an admin.": "Unable to comment. Your channel has been blocked by an admin.", "Unable to comment. The content owner has disabled comments.": "Unable to comment. The content owner has disabled comments.", + "Please do not spam.": "Please do not spam.", "Slow mode is on. Please wait up to %value% seconds before commenting again.": "Slow mode is on. Please wait up to %value% seconds before commenting again.", "The comment contains contents that are blocked by %author%": "The comment contains contents that are blocked by %author%", "Your channel is still being setup, try again in a few moments.": "Your channel is still being setup, try again in a few moments.", diff --git a/ui/redux/actions/comments.js b/ui/redux/actions/comments.js index 35cde2eb8..77cfe58df 100644 --- a/ui/redux/actions/comments.js +++ b/ui/redux/actions/comments.js @@ -470,6 +470,9 @@ export function doCommentCreate( case 'comments are disabled by the creator': toastMessage = __('Unable to comment. The content owner has disabled comments.'); break; + case 'duplicate comment!': + toastMessage = __('Please do not spam.'); + break; default: const BLOCKED_WORDS_ERR_MSG = 'the comment contents are blocked by'; const SLOW_MODE_PARTIAL_ERR_MSG = 'Slow mode is on. Please wait at most';