From ec3c6b67cdac6949c193714d4250556f647ab6e8 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 8 Jan 2024 14:45:56 -0500 Subject: [PATCH] fix: restore hostname prop in getActor method --- src/activitypub/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/activitypub/index.js b/src/activitypub/index.js index 13986b836f..721cb52159 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -45,6 +45,8 @@ ActivityPub.getActor = async (uid, input) => { actor.followerCount = followers.totalItems; actor.followingCount = following.totalItems; + actor.hostname = new URL(uri).hostname; + actorCache.set(uri, actor); return actor; } catch (e) {