Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show "Likes" on Artist page #11

Open
davidryan59 opened this issue Oct 8, 2021 · 2 comments
Open

Show "Likes" on Artist page #11

davidryan59 opened this issue Oct 8, 2021 · 2 comments

Comments

@davidryan59
Copy link
Contributor

In this screenshot, it would be great to know how many likes each ink got:

Screenshot 2021-10-08 at 08 58 10

Page is here: https://nifty.ink/artist/0xd2f016809969b4105978fdd5b112cd95bfdd6814

@davidryan59
Copy link
Contributor Author

Comment from @azf20 via Telegram:

"you can take the likes from the explorer. there is some nuance there if you want to let users like inks from that page as well"

@azf20
Copy link
Contributor

azf20 commented Nov 29, 2021

👍 will make sure to patch this onto the new artist page too #25.
I think there is an easier way to do this now actually, as we refactored the subgraph somewhat:

{
  inks(first: 5) {
    id
    inkNumber
    jsonUrl
    artist {
      id
    }
    likeCount
    likes(where: {liker: "$address"}) {
      id
    }
  }
}

This approach could be ported to Explore too I think

@davidryan59 davidryan59 removed their assignment Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants