• xavier666@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        4 hours ago

        This reply is for informing you that both your and my comments 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 @[email protected]

  • puppycat@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    16 hours 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

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

      • puppycat@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        14 hours 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.

  • Fuck Yankies@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 hours 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.

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

  • Dragon@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day 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
      0
      ·
      edit-2
      23 hours ago

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

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

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

  • Fizz@lemmy.nz
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

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

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

  • cron@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    Interesting. What is tge reasoning behind only fetching the comments vs. a full fediverse integration?

    • morrowind@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      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