parent
2776934728
commit
04553de230
@ -70,11 +70,11 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
|
||||
: { usernameLower: ps.username.toLowerCase(), host: null };
|
||||
|
||||
user = await User.findOne(q, cursorOption);
|
||||
}
|
||||
|
||||
if (user === null) {
|
||||
return rej('user not found');
|
||||
}
|
||||
}
|
||||
|
||||
// Send response
|
||||
res(await pack(user, me, {
|
||||
|
Loading…
Reference in New Issue
Block a user