Skip to content

Node.js based forum software built for the modern web

fix: restore hostname prop in getActor method

Julian Lamec3c6b67cdac
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) {