fix: closes #12618, handle missing selector

catch errors in activitypub api missing await on next()
This commit is contained in:
Barış Soner Uşaklı
2024-06-06 20:59:02 -04:00
parent 119230d7ec
commit 35eb2d0d46
4 changed files with 8 additions and 20 deletions

View File

@@ -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) {