From 59a22805b9a8611ed3174fcd2b3c6eb910f3fd8c Mon Sep 17 00:00:00 2001 From: Alys Date: Wed, 25 Apr 2018 20:40:21 +1000 Subject: [PATCH] changed message shown to muted users (after discussion with mods) Adjusted apidocs comment to match. Corrected the error type for that comment. --- website/common/locales/en/groups.json | 2 +- website/server/controllers/api-v3/chat.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/common/locales/en/groups.json b/website/common/locales/en/groups.json index 1b2ea93bd8..706934318d 100644 --- a/website/common/locales/en/groups.json +++ b/website/common/locales/en/groups.json @@ -255,7 +255,7 @@ "userRequestsApproval": "<%= userName %> requests approval", "userCountRequestsApproval": "<%= userCount %> request approval", "youAreRequestingApproval": "You are requesting approval", - "chatPrivilegesRevoked": "Your chat privileges have been revoked.", + "chatPrivilegesRevoked": "You cannot do that because your chat privileges have been revoked.", "cannotCreatePublicGuildWhenMuted": "You cannot create a public guild because your chat privileges have been revoked.", "cannotInviteWhenMuted": "You cannot invite anyone to a guild or party because your chat privileges have been revoked.", "newChatMessagePlainNotification": "New message in <%= groupName %> by <%= authorName %>. Click here to open the chat page!", diff --git a/website/server/controllers/api-v3/chat.js b/website/server/controllers/api-v3/chat.js index 0c33bf2f6d..880b78f9bb 100644 --- a/website/server/controllers/api-v3/chat.js +++ b/website/server/controllers/api-v3/chat.js @@ -95,7 +95,7 @@ function getBannedWordsFromText (message) { * * @apiUse GroupNotFound * @apiUse GroupIdRequired - * @apiError (400) {NotFound} ChatPriviledgesRevoked Your chat privileges have been revoked + * @apiError (400) {NotAuthorized} chatPriviledgesRevoked You cannot do that because your chat privileges have been revoked. */ api.postChat = { method: 'POST',