ColinEberhardt / applause-button

A zero-configuration medium-style button for adding applause / claps / kudos to web pages and blog posts
http://applause-button.com/
MIT License
426 stars 41 forks source link

Clap count is not being record4ed #82

Closed bexxmodd closed 1 month ago

bexxmodd commented 3 years ago

Hello,

First thanks for the amazing project! I tried to add it to my blog but the clap count is not being recorded. And when I refresh the page the clap button is refreshed as well.

https://www.bexxmodd.com/blog/

example post with clap button: https://www.bexxmodd.com/post/5-reasons-why-use-rust/

thanks

john-rock commented 3 years ago

Have you tried setting the url attribute?

bexxmodd commented 3 years ago

Have you tried setting the url attribute?

Can you tell me how can I do that?

john-rock commented 3 years ago

@bexxmodd Example from the landing page <applause-button url="google.com" />

If you're using a template for your blog post pass in the URL dynamically. Here's an example of how I am using it in my post template and it seems to be working as expected.

const url = `https://www.example.com/blog/${slug.current}`
...
...
<ApplauseButton url={url} />
bexxmodd commented 3 years ago

thanks, @john-rock I did that but still the same issue. Multi clap works fine, but the clap counter is still reset after I refresh the page

chriswilty commented 1 month ago

Closing due to inactivity. If this is still a problem, please open a new issue.