fix: remote follows, yet again

This commit is contained in:
Julian Lam
2024-01-26 22:35:02 -05:00
parent a3a0edb70b
commit fef1882473
7 changed files with 15 additions and 15 deletions

View File

@@ -94,10 +94,9 @@ Helpers.resolveLocalUid = async (input) => {
const { host, pathname } = new URL(input);
if (host === nconf.get('url_parsed').host) {
slug = pathname.replace(nconf.get('relative_path'), '').split('/').filter(Boolean)[1];
} else {
throw new Error('[[error:activitypub.invalid-id]]');
return pathname.replace(nconf.get('relative_path'), '').split('/').filter(Boolean)[1];
}
throw new Error('[[error:activitypub.invalid-id]]');
} else if (input.indexOf('@') !== -1) { // Webfinger
([slug] = input.replace(/^acct:/, '').split('@'));
} else {