mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fix: closes #12618, handle missing selector
catch errors in activitypub api missing await on next()
This commit is contained in:
@@ -42,13 +42,7 @@ Mocks.profile = async (actors) => {
|
||||
} = actor;
|
||||
preferredUsername = preferredUsername || slugify(name);
|
||||
|
||||
let hostname;
|
||||
try {
|
||||
({ hostname } = new URL(actor.id));
|
||||
} catch (err) {
|
||||
console.error(err.stack);
|
||||
return null;
|
||||
}
|
||||
const { hostname } = new URL(actor.id);
|
||||
|
||||
let picture;
|
||||
if (icon) {
|
||||
|
||||
Reference in New Issue
Block a user