mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
[api:endpoints/posts/create] translate '二重repostです' into English
and improve message.
This commit is contained in:
parent
8d5adfbdd7
commit
3b7baa0551
1 changed files with 2 additions and 2 deletions
|
@ -87,14 +87,14 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
|
||||||
latestPost.repost_id &&
|
latestPost.repost_id &&
|
||||||
latestPost.repost_id.equals(repost._id) &&
|
latestPost.repost_id.equals(repost._id) &&
|
||||||
text === undefined && files === null) {
|
text === undefined && files === null) {
|
||||||
return rej('二重Repostです(NEED TRANSLATE)');
|
return rej('cannot repost same post that already reposted in your latest post');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 直近がRepost対象かつ引用じゃなかったらエラー
|
// 直近がRepost対象かつ引用じゃなかったらエラー
|
||||||
if (latestPost &&
|
if (latestPost &&
|
||||||
latestPost._id.equals(repost._id) &&
|
latestPost._id.equals(repost._id) &&
|
||||||
text === undefined && files === null) {
|
text === undefined && files === null) {
|
||||||
return rej('二重Repostです(NEED TRANSLATE)');
|
return rej('cannot repost your latest post');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue