toActor: don't require the nip05

Related: https://gitlab.com/soapbox-pub/ditto/-/issues/30
This commit is contained in:
Alex Gleason
2023-07-27 13:27:53 -05:00
parent 8019a8d958
commit 97d2298178
2 changed files with 2 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ const actorController: AppController = async (c) => {
const event = await getAuthor(user.pubkey);
if (!event) return notFound(c);
const actor = await toActor(event);
const actor = await toActor(event, user.username);
if (!actor) return notFound(c);
return activityJson(c, actor);