Skip to content

Commit

Permalink
Reverted removal of dataToStore
Browse files Browse the repository at this point in the history
  • Loading branch information
mike182uk committed Jul 29, 2024
1 parent 39f007a commit a32d935
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,19 @@ export async function getUserData(ctx: RequestContext<ContextData>, 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;
}
Expand Down

0 comments on commit a32d935

Please sign in to comment.