mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
[API] Better error message
This commit is contained in:
parent
4f1a65f758
commit
2595b9df36
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module.exports = (params, user) =>
|
|||
|
||||
// Myself
|
||||
if (new mongo.ObjectID(recipient).equals(user._id)) {
|
||||
return rej('-need-translate-');
|
||||
return rej('cannot send message to myself');
|
||||
}
|
||||
|
||||
recipient = await User.findOne({
|
||||
|
|
Loading…
Reference in a new issue