utterance / utterances

:crystal_ball: A lightweight comments widget built on GitHub issues
https://utteranc.es
MIT License
9k stars 572 forks source link

Replies are showing reactions but not visible on GitHub issues? #323

Open hefnawi opened 4 years ago

hefnawi commented 4 years ago

I'm having a problem with my comments having reactions that are not visible on the actual GitHub issue, this happened after a user bombarded the whole thread with reactions and non-sense comment, then a day later his comments were no longer visible but his reactions are still there and they still continue to be added on new comments as well.

I'm confused about this behaviour and would like to know if there is a way to fix it.

Thank you all :)

An example here: https://hefnawi.me/posts/detect-sars-cov-2-near-infrared-spectroscopy/

image

And this is the GitHub issue itself: https://github.com/hefnawi/dot-me/issues/5

jdanyow commented 4 years ago

Hey sorry to hear that. I can't tell exactly what happened but my guess is the user was reported for abuse, causing their activity to be hidden on github.com. Looks like the github API doesn't hide the abusive content in the same way. I don't see a way to fix this from the utterances side unfortunately.

hefnawi commented 4 years ago

@jdanyow Thanks for the explanation, that makes sense now. I will try to reach out to GitHub and will update the issue here with any updates accordingly.

kaknut commented 4 years ago

The best option would be to block the user.

hefnawi commented 4 years ago

Hello, Just as a follow-up, I received a reply from GitHub.

I've had a look at this and it looks like utterances may be caching those reactions. If we check the comment on GitHub, we can't see any: https://github.com/hefnawi/dot-me/issues/5#issuecomment-629933829 And aware that this might be a specific issue with our API, I also tested this by fetching the comment's reactions using our REST API endpoint:


$ curl 'https://api.github.com/repos/hefnawi/dot-me/issues/comments/629933829/reactions' -H 'Accept: application/vnd.github.squirrel-girl-preview+json'

[]



>I'm not sure how utterances works but from what I can see, this is likely an issue with it rather than GitHub itself. If I've misunderstood, can you point me to a comment where our API is still returning the spammy reactions even when our UI isn't? I'd be very happy to take a closer look!

Do you think it's a cache issue?

Thanks,
Ahmed