diff options
| author | otofune <otofune@gmail.com> | 2017-05-28 07:09:56 +0900 |
|---|---|---|
| committer | otofune <otofune@gmail.com> | 2017-05-28 07:16:35 +0900 |
| commit | 3b7baa0551c83b313196d2b055371cf20239520f (patch) | |
| tree | 84db760cfa0390354218f8cccb18cc6f992e4422 /src | |
| parent | [travis] shapeup script will indent package.json with tabs (diff) | |
| download | sharkey-3b7baa0551c83b313196d2b055371cf20239520f.tar.gz sharkey-3b7baa0551c83b313196d2b055371cf20239520f.tar.bz2 sharkey-3b7baa0551c83b313196d2b055371cf20239520f.zip | |
[api:endpoints/posts/create] translate '二重repostです' into English
and improve message.
Diffstat (limited to 'src')
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 535f850a6e..7f2dfc6ecb 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -87,14 +87,14 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => { latestPost.repost_id && latestPost.repost_id.equals(repost._id) && text === undefined && files === null) { - return rej('二重Repostです(NEED TRANSLATE)'); + return rej('cannot repost same post that already reposted in your latest post'); } // 直近がRepost対象かつ引用じゃなかったらエラー if (latestPost && latestPost._id.equals(repost._id) && text === undefined && files === null) { - return rej('二重Repostです(NEED TRANSLATE)'); + return rej('cannot repost your latest post'); } } |