not really, because you are really fetching two things; you need to fetch the event that you want and then the profile for that event
we could probably add some syntax sugar to do something like
const event = await ndk.fetchEvent(filter);
const user = event.author();
await user.fetchProfile();
return { event: event, user: user.profile };
I'm not satisfied with the way the profile fetching interface looks like; I'll probably refactor it to something nicer
Awesome. Thank you so much. I’m not really a developer so I wasn’t sure if I was doing something wrong. 😂
Please Login to reply.
No replies yet.