Skip to content

Node.js based forum software built for the modern web

fix: don't look up webfinger when it's not necessary

Oplikodd71340af910
diff --git a/src/activitypub/actors.js b/src/activitypub/actors.js
index 6f6b20fae2..73dead4c9b 100644
--- a/src/activitypub/actors.js
+++ b/src/activitypub/actors.js
@@ -31,8 +31,8 @@ Actors.assert = async (ids, options = {}) => {
// Translate webfinger handles to uris
ids = (await Promise.all(ids.map(async (id) => {
const originalId = id;
- const isUri = activitypub.helpers.isUri(id);
- if (id.includes('@') || isUri) {
+ if (id.includes('@')) {
+ const isUri = activitypub.helpers.isUri(id);
const host = isUri ? new URL(id).host : id.split('@')[1];
if (host === nconf.get('url_parsed').host) { // do not assert loopback ids
return null;