Include source property on own account

This commit is contained in:
Alex Gleason
2023-05-02 13:58:29 -05:00
parent e93fcdc643
commit 6fa897145e
2 changed files with 18 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ const credentialsController: AppController = async (c) => {
const event = await getAuthor(pubkey);
if (event) {
return c.json(toAccount(event));
return c.json(toAccount(event, { withSource: true }));
}
return c.json({ error: 'Could not find user.' }, 404);