Ooh, that’s nice. I could see that effectively replacing disqus comments below articles. Cool beans!
Kinda cool. To be honest I’m mostly posting this to test it.
Edit: It works!
How about image support?
Not at the moment, since that would require parsing the markdown
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.
Lol, don’t blame the duckquill dev, he only wrote the mastodon one, which I don’t use. This is all me.
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.
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.
It seems like a tedious workflow, but the end result is quite good.
Neat! Do you pick one instance to load comments from? I notice that this comment isn’t showing up immediately, so wondering if there’s federation delay or the like.
Currently uses my home instance, lemmy.ml. I’d expect there to be some delay
I’m a little bit biased here but it might be a good idea to use an instance like lemmy.zip instead, to minimize the amount of defederation going on.
I wonder what happens if a comment is deleted
deleted by creator
It would be nice if you could sign-in/comment directly from the blog. But I’m guessing the Lemmy api doesn’t provide that without making the blog it’s own instance
It could be a web app like Voyager but you really shouldn’t just enter your credential willy nilly all over the place.
Theoretically Lemmy could open a pop-up or redirect to sign in through your instance.
@morrowind Test comment from outside of Lemmy
Nice! That works too
Would be cool if something like this existed for WordPress
WordPress does have an ActivityPub plugin, and it works with Lemmy. https://dbzer0.com/blog/this-blog-is-now-federated-natively-to-lemmy/
A good example is dbzer0.com which is federated to !dbzer0.com@dbzer0.com
Shame there’s no tutorial to federate it to lemmy
@db0@lemmy.dbzer0.com
Anything more straightforward? I see some links but there’s stuff about audience fields that I don’t understand
It’s pretty straightforward. Just activate the plugin mostly. There isn’t anything about audience in the plugin settings iirc so I’m not sure what you’re seeing.
It’s been activated for a while, I believe it’s up to date also. Unless my lemmy instance needs to update, too?
Yes lemmy should be at 19.6 at least
Alright! Found the issue! I was trying to access the community as domain.tld@domain.tld, when it’s actually what I set to be the blog’s profile itself.
Ie, I set the blog’s profile to all@domain.tld, the relevant community is all@domain.tld
Super neat concept. I really enjoy the melding of (micro)blogs and threads, which is what I like about Kbin/Mbin; I can follow interesting people from Mastodon without needing to visit a separate app or site. In a way, this scratches that same itch for Lemmy.
peachy keen, friend. peachy keen.
Alright, let’s see if this shows
it be there! ;-)
awesome job!
Lets gooo ╰(*°▽°*)╯╰(*°▽°*)╯
Great!
Does it also work with Mastodon? Because it is possible to reply to Lemmy posts from Mastodon, right?
It works with anything lemmy works with, so yes
That’s awesome
It appears to. I just copy-pasted the link into Mastodon and it loaded this post with all the comments. Discovery for Lemmy posts on Mastodon still sucks though.
Immediately scrolls down to the comment section. I’ve been spoiled by content just automatically loading, but I saw the “Load Lemmy” button. Tres chic.
It would be cool if there was a raised question mark button to the right for the load button, that on mouse over or click shows a tooltip explaining shortly what Lemmy is, as well as directly telling the user what community and instance the comments hail from - even before loading the content.
A standard tooltip for that purpose would be kind of nice.
Yeah I could add that.
as well as directly telling the user what community and instance the comments hail from - even before loading the content.
Well I’d have to load something to show this, unless I set it manually, which would be cumbersome.
Yeah, I’m not saying it’s easy to do ^^ it is a job and a half just to design it, for sure. I’m not facetious enough to pretend anything else.
Interesting. What is tge reasoning behind only fetching the comments vs. a full fediverse integration?
Fediverse integration would require me to run, pay for and maintain a federated server. This takes me 50 lines of Javascript on a completely static site that cloudflare runs for free. It’s just so much easier