It seems like a tedious workflow, but the end result is quite good.
Comment on My blog now has Lemmy comments
andrew_s@piefed.social 3 weeks ago
Neat. It took me a while to realise what was going on: the post on Lemmy and the blogpost are two separate entities. The Lemmy post is a link to the blogpost, and the blogpost uses the post_id to fetch the comments (so I guess this means you have to make the blogpost, make the Lemmy post, and then go back and edit the blogpost with the correct id?)
The script is inspectable on the blog - I can see it does:
const url = 'https://lemmy.ml/api/v3/comment/listpost_id=21617067&limit=100&max_depth=8&sort=Top&type_=All';
So I suppose there's an inbuilt limit for comment depth and number of replies, but if you start down the road of working on that, you'll eventually find that you've re-invented a front-end, and there's no end to it.
What the duckquill guys are doing is a bit fudgy, in that they're getting another website to do the federation legwork for them, but the results are pleasing enough.
cron@feddit.org 3 weeks ago
morrowind@lemmy.ml 3 weeks ago
Lol, don’t blame the duckquill dev, he only wrote the mastodon one, which I don’t use. This is all me.
Yeah, I kinda chose the limits arbitrarily, but I don’t expect them to be an issue anytime soon.
This setup is also more flexible. I can in the future add comments from multiple lemmy posts, as well as other completely different sites.