• @xarvos
    link
    73 years ago

    The script is calling to Mastodon API to get the Mastodon post, which should be achievable with the Lemmy API as well.

    As of now, Lemmy use API v3, so: https://lemmy.ml/api/v3/post?id=<post id>.

      • @xarvos
        link
        13 years ago

        Is there anything else I have to change?

        Quite a lot actually, maybe you’d have to rewrite it entirely. Mastodon comment is represented as flat, while Lemmy comment has a tree structure. What makes it harder is that the data in the API does not represent it as such, so you’d have to somehow turns it into one. I don’t think it’s too hard a problem, but I don’t think I have energy for it.

        • @pineapple@sopuli.xyzOP
          link
          fedilink
          13 years ago

          Thanks for the reply. I don’t think, I can change it as well since I don’t really know how to code.