... 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 When I thought about doing that for my blog I decided that I didn’t want to get into the social issues and copyright issues this could involve. I just didn’t want to get involved into those discussions. I hope it works out for you. 😀
@kensanata Absolutely understandable. I tend to be more relaxed on this issue in this case. Toots are public, distributed across a unknown large number of Mastodon, GNU Social and Friendica instances. Cached by search engines, archived by archive.org so I don't see a problem by showing it on my homepage as well. It is also "just a live search" when you open the page. Nothing is stored and if someone deleted a reply it will disappear on my page as well. So I feel fine with it.
@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.
Do you plan to integrate this code in a WP plugin? If not, I am interested to have a try for doing that.
@tom79 as I don't use WordPress I will probably not turn it in a WordPress plugin. But it should be straight forward. Additionally you probably need to make some URLs/strings configurable which I hard coded in order to get it finished quickly yesterday and provide a small configuration page for WordPress. Would be awesome if you would try it. Let me know when you did it! 🙂
Ok. Thanks, I will try to build this plugin :)
@tom79 Let me know if you need any help. I'm happy to give feedback, explain my code, etc of needed.
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.
Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!