mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: restore hostname prop in getActor method
This commit is contained in:
@@ -45,6 +45,8 @@ ActivityPub.getActor = async (uid, input) => {
|
|||||||
actor.followerCount = followers.totalItems;
|
actor.followerCount = followers.totalItems;
|
||||||
actor.followingCount = following.totalItems;
|
actor.followingCount = following.totalItems;
|
||||||
|
|
||||||
|
actor.hostname = new URL(uri).hostname;
|
||||||
|
|
||||||
actorCache.set(uri, actor);
|
actorCache.set(uri, actor);
|
||||||
return actor;
|
return actor;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user