-
-
Notifications
You must be signed in to change notification settings - Fork 197
Description
We may decide to or not to do this. But may be fun to show who liked the package and show little profile picture to the side that shows some of the users who have liked it. I know we talked about "trusted" likes as in showing only users who you have a follow to/from. But may have to think on how to do those queries and would be to divide them up here somewhere when showing.
Can see who has liked it by this constellation query replacing the target with the package. We have a helper for those calls here in the project
https://constellation.microcosm.blue/links?target=https%3A//npmx.dev/package/ nuxt&collection=dev.npmx.feed.like&path=.subjectRef
We may be able to get away with using a public.api and a single call (something similar is done in the project here). But we may want to consider taking in account the npmx profile and it's avatar cid in the future as well over the bluesky one
https://public.api.bsky.app/xrpc/app.bsky.actor.getProfiles?actors=did:plc:rnpkyqnmsw4ipey6eotbdnnf&actors=did:plc:hdhoaan3xa3jiuq4fg4mefid (actors is limited to 25 or less here)