• ProdigalFrog@slrpnk.net
    link
    fedilink
    English
    arrow-up
    64
    ·
    2 months ago

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

  • Lost_My_Mind@lemmy.world
    link
    fedilink
    English
    arrow-up
    43
    ·
    edit-2
    2 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?

    Edit: Hey, I see it!

    • morrowind@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      37
      ·
      2 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.

      • Lost_My_Mind@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        2 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?

        • morrowind@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          6
          ·
          2 months ago

          Possible sure, but aside from the effort to make such a bot, posting to my own community would mean that very few people would see it, aside from those who already follow the blog. I have to pick a lemmy community, at which point I may as well do the rest of the work too. Now maybe I could have an llm analyze my post, fetch a list of communities, and then pick a likely one, but honestly this is getting too complicated

          • Lost_My_Mind@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 months ago

            Oh, I figure you make your own community. The Mastodon account grows your blogs awareness. The Lemmy community serves as a place to discuss your blog while also being host to the majority of the conversation. And the blog is the host of the content.

          • Rogue@feddit.uk
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 months ago

            Doesn’t Lemmy support cross posting?

            I considered implementing Lemmy comments and theorised I’d post to my own community/instance so I had full moderation control, then cross post that to all the relevant communities.

  • m_f@midwest.social
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    2 months ago

    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.

      • felsiq@lemmy.zip
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 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.

  • Andrew@piefed.social
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 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.

    • morrowind@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 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.

    • cron@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 months ago

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

  • Dragon@lemmy.ml
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 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

    • woelkchen@lemmy.worldM
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 months ago

      It could be a web app like Voyager but you really shouldn’t just enter your credential willy nilly all over the place.

      • Dragon@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

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

    • TORFdot0@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 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