Hello!

I’ve been thinking about hosting my own Lemmy instance, but wonder if there’s an easy way to federate with other communities/instances. I like to browse the “All” tab, but that tab would be empty on a self-hosted instance I imagine.

Is there a way to get all communities of certain instances in my All feed? Or do I have to search up each individual community manually once?

  • retiolus@lemmy.cat
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I don’t think there’s a way of doing this automatically at the moment.

    With Lemmy’s API you could set up a bot that takes care of listing all the local communities on a remote server and then searching them from yours, which would make them appear in your search results.

    But if you want the publications of this remote community to federate with your server, you need to have a local user subscribed to it.

    • Jamie@jamie.moe
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      I’m working on a Rust API wrapper around the existing common API to make it easier to use. Implemented the calls that could let someone do this exact thing at scale last night.

      It’s nowhere near ready for production and is still missing a lot of basic API functionality even for a simple bot, but I think it’ll be ready to publicly release in an alpha state within the next couple days.

      • curioushom@lemmy.one
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        That’s neat. Is the idea that the bot user would enumerate and then subscribe to the communities found through the Lemmy API?

        • Jamie@jamie.moe
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Pretty much, that would force federation. Though I don’t think users in the other community would see your communities until someone from there searched one of yours.

          An idea I have is giving small communities an option to run the bot on their instance, and it would add them to a list. Then, communities voluntarily participating in that list could auto-populate each other’s communities through the bot. I could see spammers abusing something like this to try and flood feeds with garbage content until they’re defederated though, especially on instances with open registration, so there is a downside. But that’s something the community of proper users will need to be prepared to fight down the road.

    • Lauchmelder@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Ah, so someone needs to be actually subscribed to a community for their content to show up in All?

      Alright I guess I’ll have to write a simple Bot that can do that for me then