mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: crash in resolveLocalId if Number is passed in
This commit is contained in:
@@ -111,7 +111,7 @@ Helpers.resolveLocalId = async (input) => {
|
||||
}
|
||||
|
||||
return { type: null, id: null };
|
||||
} else if (input.indexOf('@') !== -1) { // Webfinger
|
||||
} else if (String(input).indexOf('@') !== -1) { // Webfinger
|
||||
const [slug] = input.replace(/^acct:/, '').split('@');
|
||||
const uid = await user.getUidByUserslug(slug);
|
||||
return { type: 'user', id: uid };
|
||||
|
||||
Reference in New Issue
Block a user