mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 11:40:49 +00:00
[API] Better error message
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user