diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2017-02-24 00:19:12 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2017-02-24 00:19:22 +0900 |
| commit | 86c60f045f07686868953cea059c25eeae8556bb (patch) | |
| tree | 5797c8887ecc3f5a93f654c70c04bad9fa8e6f6e /src/api/endpoints | |
| parent | [Client] Fix bug (diff) | |
| download | sharkey-86c60f045f07686868953cea059c25eeae8556bb.tar.gz sharkey-86c60f045f07686868953cea059c25eeae8556bb.tar.bz2 sharkey-86c60f045f07686868953cea059c25eeae8556bb.zip | |
Fix English grammatical error
Diffstat (limited to 'src/api/endpoints')
| -rw-r--r-- | src/api/endpoints/posts/create.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/api/endpoints/posts/create.js b/src/api/endpoints/posts/create.js index 25a3b5d4c3..73bd72cf6f 100644 --- a/src/api/endpoints/posts/create.js +++ b/src/api/endpoints/posts/create.js @@ -40,7 +40,7 @@ module.exports = (params, user, app) => let text = params.text; if (text !== undefined && text !== null) { if (typeof text != 'string') { - return rej('text is must be a string'); + return rej('text must be a string'); } text = text.trim(); if (text.length == 0) { @@ -57,7 +57,7 @@ module.exports = (params, user, app) => let files = []; if (medias !== undefined && medias !== null) { if (!Array.isArray(medias)) { - return rej('media_ids is must be an array'); + return rej('media_ids must be an array'); } if (medias.length > maxMediaCount) { @@ -74,7 +74,7 @@ module.exports = (params, user, app) => const media = medias[i]; if (typeof media != 'string') { - return rej('media id is must be a string'); + return rej('media id must be a string'); } // Validate id @@ -105,7 +105,7 @@ module.exports = (params, user, app) => let repost = params.repost_id; if (repost !== undefined && repost !== null) { if (typeof repost != 'string') { - return rej('repost_id is must be a string'); + return rej('repost_id must be a string'); } // Validate id @@ -155,7 +155,7 @@ module.exports = (params, user, app) => let replyTo = params.reply_to_id; if (replyTo !== undefined && replyTo !== null) { if (typeof replyTo != 'string') { - return rej('reply_to_id is must be a string'); + return rej('reply_to_id must be a string'); } // Validate id |