... Here you can see/try it live https://www.schiessle.org/articles/2016/02/12/the-next-generation-of-code-hosting-platforms/
@bjoern Why is the comments counter still at 0, but Balu write a post?
@funqr Good catch, Thanks! I will check it.
@funqr Just checked it. The API returns '0' and also on Mastodon the reply count is '0', see https://mastodon.social/@bjoern/100148499376257587 Seems to be a Mastodon bug?
@bjoern This is super neat, and I love the way you've integrated the share buttons (I need to sit down with my own website sometime soon and update it) but note: the icon doesn't show up on the article and I don't think I'm seeing all of the replies :)
@eleanor Which icons do you mean (maybe you have a screenshot?) and do you have a example of a reply which should be there but doesn't show up? Looks everything good here, as far as I can tell.
@eleanor Ah, the avatar. That's strange. I tried it with different browsers, in private mode, etc it always works here. The image comes directly from the Mastodon server. Maybe a browser caching issue on your side? Can you check the URL of the broken avatar. This should be the URL https://files.mastodon.social/accounts/avatars/000/364/781/original/336a118dcb40ff63.jpeg
@bjoern It works fine at work but not at home. Not sure why that would be.
This looks really cool. I don't know PHP—what all are you doing server-side? Do you think it'd be possible to do it all with client-side JS? It seems like it should be possible, though it might be a little slow (and I guess you'd lose your comments if the instance were down…)
Might play around with that one day.
It reminds me of utteranc.es.
@algorev I know it. There are quite some interesting approaches to bring comments to static webpages. Why I decided against this particular solution: I don't wan to ask my visitors to signup at a centralized and proprietary service to add a comment. I prefer to advertise free, decentralized, federated and open solution. 🙂
@bjoern cool stuff! No more disqus for comments on static pages!
@bjoern Cool! Was talking just a few days ago about wanting something of this sort.
@bjoern This looks amazing. I've been trying to implement it on my own site - without much success (due to my own deficiencies).
The JS is getting stuck because RelPermalink is undefined. Where is is looking for this term and for what purpose?
I assume also that this line in 'getcomments.php' would reference the config file in the mastodon-comments dir, as the provided address isn't in your repo?
@bjoern Blind perseverance has got me somewhere (which should be a compliment to your code because I know nothing of PHP) - I think I'm just struggling with the credentials now because I'm getting a blank JSON return from getcomments.php.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!