diff --git a/src/user.ts b/src/user.ts index f4fcfc84..e61eb833 100644 --- a/src/user.ts +++ b/src/user.ts @@ -66,7 +66,19 @@ export async function getUserData(ctx: RequestContext, handle: stri ), }; - await ctx.data.db.set(['handle', handle], data); + const dataToStore: PersonData = { + id: data.id.href, + name: data.name, + summary: data.summary, + preferredUsername: data.preferredUsername, + icon: ACTOR_DEFAULT_ICON, + inbox: data.inbox.href, + outbox: data.outbox.href, + following: data.following.href, + followers: data.followers.href, + }; + + await ctx.data.db.set(['handle', handle], dataToStore); return data; }