Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

My blog now has Lemmy comments

⁨343⁩ ⁨likes⁩

Submitted ⁨⁨6⁩ ⁨months⁩ ago⁩ by ⁨morrowind@lemmy.ml⁩ to ⁨fediverse@lemmy.world⁩

https://blog.coship.fyi/blog/lemmy-comments/

source

Comments

Sort:hotnewtop
  • ProdigalFrog@slrpnk.net ⁨6⁩ ⁨months⁩ ago

    Ooh, that’s nice. I could see that effectively replacing disqus comments below articles. Cool beans!

    source
  • Lost_My_Mind@lemmy.world ⁨6⁩ ⁨months⁩ ago

    Wait, so theoretically, you could create a blog, and create a Lemmy instance/community, post a blog entry, have it auto post the blog entry to your instance, and now the Lemmy comments for the Lemmy post are the comments on the blog post? Do I have that right?

    And in theory THIS comment should show up on your blog, yes?

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Oh much simpler, I just make a post with my blog as a link, and supply that link to my site and it shows the comments from that link. As I said, not actually federated. It’s basically a sort of frontend.

      source
      • Lost_My_Mind@lemmy.world ⁨6⁩ ⁨months⁩ ago

        Could you make a community, and a bot? The bot would look for any post on your blog, then the bot creates a post in that community that uses the blog post title as the lemmy title, and uses the blog body as the post body.

        Then the bot tells your blog the url of the lemmy post to use the lemmy comments.

        Then, I see the button that says “load lemmy comments”. Maybe your bot also creates a mastodon using the title of the blog post as a link to the blog post. Then any mastodon replies to that mastodon post could be under a different button that just says “Load Mastodon replies”.

        So at the end of your blog you have “Load Lemmy comments” (just as we see here) but next to it is “Load Mastodon replies”.

        And all of this, is done by you just posting once to the blog, while the bots do everything else in an instant.

        You just post once on the blog, and automatically a Lemmy post is created which is a duplicate of the blog post, the lemmy comments are loaded via a button on the blog automatically, a Mastodon post is created which is just a link to the blog using that posts title as the clickable link, AND a button on the blog is created to see Mastodon replies to the mastodon post.

        Everything besides the innitial blog post is automatic.

        Is that possible?

        source
        • -> View More Comments
  • LibertyLizard@slrpnk.net ⁨6⁩ ⁨months⁩ ago

    Kinda cool. To be honest I’m mostly posting this to test it.

    source
  • Voyajer@lemmy.world ⁨6⁩ ⁨months⁩ ago

    Image

    How about image support?

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Not at the moment, since that would require parsing the markdown

      source
  • andrew_s@piefed.social ⁨6⁩ ⁨months⁩ 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.

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      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.

      source
    • cron@feddit.org ⁨6⁩ ⁨months⁩ ago

      It seems like a tedious workflow, but the end result is quite good.

      source
  • otter@lemmy.ca ⁨6⁩ ⁨months⁩ ago

    I wonder what happens if a comment is deleted

    source
  • m_f@midwest.social ⁨6⁩ ⁨months⁩ ago

    Neat!

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Currently uses my home instance, lemmy.ml. I’d expect there to be some delay

      source
      • felsiq@lemmy.zip ⁨6⁩ ⁨months⁩ ago

        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.

        source
  • Flax_vert@feddit.uk ⁨6⁩ ⁨months⁩ ago

    Would be cool if something like this existed for WordPress

    source
  • Dragon@lemmy.ml ⁨6⁩ ⁨months⁩ ago

    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

    source
    • woelkchen@lemmy.world ⁨6⁩ ⁨months⁩ ago

      It could be a front-end but you really shouldn’t just enter your credential willy nilly all over the place.

      source
      • Dragon@lemmy.ml ⁨6⁩ ⁨months⁩ ago

        Theoretically Lemmy could open a pop-up or redirect to sign in through your instance.

        source
  • imattau@dcentralisedmedia.com ⁨6⁩ ⁨months⁩ ago
    @morrowind Test comment from outside of Lemmy
    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Nice! That works too

      source
  • puppycat@lemmy.blahaj.zone ⁨6⁩ ⁨months⁩ ago

    this is actually really cool! I also wanna suggest using any instance besides .ml or .world, just for the sake of why Lemmy exists in the first place

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      I get the idea, but it’s my home instance, so it’d be kinda weird for me to use a different one. Also would add an extra step

      source
    • moseschrute@lemmy.world ⁨6⁩ ⁨months⁩ ago

      In new to lemmy. Curious what the significance of ml and world are? Do you mean those TLDs or just lemmy.ml and lemmy.world specifically

      source
      • FiskFisk33@startrek.website ⁨6⁩ ⁨months⁩ ago

        the latter, they are the largest instances, and it’s generally healthy to spread stuff out

        source
      • puppycat@lemmy.blahaj.zone ⁨6⁩ ⁨months⁩ ago

        just those two specifically, the more everything uses those two instances the more power they have basically. the whole point of being federated is to avoid being idk ruled over by any people, groups, or greedy little pig boys.

        source
  • Blaze@feddit.org ⁨6⁩ ⁨months⁩ ago

    Great!

    source
  • antithetical@lemmy.deedium.nl ⁨6⁩ ⁨months⁩ ago

    Nice, I did the same for my blog. Didn’t want to build a whole comment system when Lemmy fits the bill quite nicely :)

    source
    • TORFdot0@lemmy.world ⁨6⁩ ⁨months⁩ ago

      I did the same using Mastodon for my blog, ended up switching to Disqus (shudders) just because it supports more SSO options for accounts that my limited readership is likely to have

      source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Drop a link! I’d like to see it

      source
      • antithetical@lemmy.deedium.nl ⁨6⁩ ⁨months⁩ ago

        Ha sure, but since it is not well traveled there aren’t any Lemmy comments yet. But you’re very welcome to visit…

        See: Gele Sneeuw

        source
  • qprimed@lemmy.ml ⁨6⁩ ⁨months⁩ ago

    peachy keen, friend. peachy keen.

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Alright, let’s see if this shows

      source
      • qprimed@lemmy.ml ⁨6⁩ ⁨months⁩ ago

        it be there! ;-)

        awesome job!

        source
        • -> View More Comments
  • daudix@lemmy.zip ⁨6⁩ ⁨months⁩ ago

    Awsum!

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Hey aren’t you the duckquill dev?

      source
      • daudix@lemmy.zip ⁨6⁩ ⁨months⁩ ago

        Mhm :)

        source
  • xavier666@lemm.ee ⁨6⁩ ⁨months⁩ ago

    This is a test comment to check the functionality.

    source
    • WereCat@lemmy.world ⁨6⁩ ⁨months⁩ ago

      This is a test reply to test the functionality of the test comment.

      source
      • xavier666@lemm.ee ⁨6⁩ ⁨months⁩ ago

        This reply is for informing you that both your and my comment are visible on the blog. Also, i’m posting from lemm.ee and the user is from .ml. So cross-instance comments are also working.

        Good job @morrowind@lemmy.ml

        source
        • -> View More Comments
  • taanegl@lemmy.ml ⁨6⁩ ⁨months⁩ ago

    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.

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      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.

      source
      • taanegl@lemmy.ml ⁨6⁩ ⁨months⁩ ago

        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.

        source
  • R00bot@lemmy.blahaj.zone ⁨6⁩ ⁨months⁩ ago

    History in the making. This is what open source is all about.

    source
  • unrushed233@lemmings.world ⁨6⁩ ⁨months⁩ ago

    Does it also work with Mastodon? Because it is possible to reply to Lemmy posts from Mastodon, right?

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      It works with anything lemmy works with, so yes

      source
      • unrushed233@lemmings.world ⁨6⁩ ⁨months⁩ ago

        That’s awesome

        source
    • midnightblue@lemmy.ca ⁨6⁩ ⁨months⁩ ago

      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.

      source
  • Gemini24601@lemmy.world ⁨6⁩ ⁨months⁩ ago

    What an awesome implementation for Lemmy!

    source
  • Kolanaki@yiffit.net ⁨6⁩ ⁨months⁩ ago

    Duckquill sounds like cold medicine specifically formulated for ducks.

    source
  • Devdoggy@lemm.ee ⁨6⁩ ⁨months⁩ ago

    I just wanted to say 2 things, 1) Very cool! 2)Nice username.

    source
  • dekuuSkrb@pawb.social ⁨6⁩ ⁨months⁩ ago

    naawww this is tuff

    source
  • ns1@feddit.uk ⁨6⁩ ⁨months⁩ ago

    Nice work!

    source
  • Fizz@lemmy.nz ⁨6⁩ ⁨months⁩ ago

    This is really cool. Can you add more detail on how to set this up to the blogpost?

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      I was, but honestly there’s not much to write without getting into the specifics of parsing the lemmy api, because it’s literally just a fetchcall and then turning the response into nice html

      source
  • skariko@feddit.it ⁨6⁩ ⁨months⁩ ago

    Thanks to your post, the comments and the discussion that ensued, I was able to recreate the same effect on my Wordpress blog: https://www.lealternative.net/2024/10/21/cal-com-infrastruttura-di-pianificazione-per-chiunque/ 🧡

    source
  • Draconic_NEO@lemmy.world ⁨6⁩ ⁨months⁩ ago

    Doesn’t Lemmy already support federated wordpress blogs as locked communities? I don’t really see how this extra complexity is needed.

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Dude this is 10x simpler than WordPress

      source
  • TriflingToad@lemmy.world ⁨6⁩ ⁨months⁩ ago

    Hello webcrawlers! 🕷️🕷️

    source
  • xnx@slrpnk.net ⁨6⁩ ⁨months⁩ ago

    Thats Awesome! Needs a mobile ui though

    source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      Update: I think I see the problem, comments are too wide on small screens. I’ll see if I can fix it

      source
    • morrowind@lemmy.ml ⁨6⁩ ⁨months⁩ ago

      It should work on mobile. What problem are you seeing?

      source
  • mesamunefire@lemmy.world ⁨6⁩ ⁨months⁩ ago

    Neat!

    source
-> View More Comments