News for hackers. Stuff that matters.
Re:You Can't Follow Me by cobertos on Thursday January 11, 2024 @05:37AM (#38950379)
I hope I don't run into this many issues when I do the same implementation. I've been wanting to add integration with Mastodon to my static blog for a while now, as my refuge from Twitter and platforms in general. I just never use my "normal" Mastodon account so it feels weird to think I'll use this blog any more than I do that one...

Some of these issues seem avoidable though? The author seems to be diving too far into the testing rabbit hole. For my workflows, I generally find holistic integration tests to be too time consuming and not worth it, for the level of fidelity I want (I'm not NASA/bug-free). Same with trying to avoid testing on prod. It might not be "clean" but for a site like this it seems like a reasonable tradeoff.

Re:You Can't Follow Me by shadowgovt on Thursday January 11, 2024 @07:39AM (#38951432)
The integration I've seen work that's simple to implement is to have a button for "show comments" that loads a particular mastodon thread, and then if people want to comment they need a mastodon account and can comment on that thread.
Re:You Can't Follow Me by Ciantic on Thursday January 11, 2024 @10:19AM (#38953365)
Here is an example, from Leo Laporte's blog:

https://leo.fm/2022/02/isitover/

Click on the "Load comments", you can see that it does request to Mastodon server, in this case, twit.social to fetch the comments. Because most Mastodon servers have CORS allowed to all sites, it's pretty easy to do.