fix: save followersUrl to remote user hashes

This commit is contained in:
Julian Lam
2024-05-06 14:46:26 -04:00
parent 8de2352e64
commit 738d47c7db

View File

@@ -26,7 +26,7 @@ Mocks.profile = async (actors) => {
const uid = actor.id; const uid = actor.id;
let { let {
url, preferredUsername, published, icon, image, url, preferredUsername, published, icon, image,
name, summary, followerCount, followingCount, name, summary, followers, followerCount, followingCount,
postcount, inbox, endpoints, postcount, inbox, endpoints,
} = actor; } = actor;
preferredUsername = preferredUsername || slugify(name); preferredUsername = preferredUsername || slugify(name);
@@ -62,6 +62,7 @@ Mocks.profile = async (actors) => {
url, url,
inbox, inbox,
sharedInbox: endpoints ? endpoints.sharedInbox : null, sharedInbox: endpoints ? endpoints.sharedInbox : null,
followersUrl: followers,
}; };
return payload; return payload;