From a32d9356488ea158df674275a553982ab60ea2ff Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Mon, 29 Jul 2024 08:39:28 +0100 Subject: [PATCH] Reverted removal of dataToStore --- src/user.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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; }