this post was submitted on 06 Jun 2023
8 points (100.0% liked)

Asklemmy

43874 readers
2612 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

Is it possible for a user to query the state of a given lemmy server's federation state?

According to the lemmy documentation the server can be configured with one of three different states of federation:

  1. Open
  2. Blocklist
  3. Allowlist

Unfortunately, I joined a lemmy instance that was set to "allowlist" and therefore I couldn't interact with most of the lemmy fediverse :(

I'm wondering if it's possible for non-users to query a server to see what federation state it's set-to, so that users can be aware of how limited their content will be before they signup.

top 19 comments
sorted by: hot top controversial new old
[–] PriorProject@lemmy.world 6 points 1 year ago* (last edited 1 year ago)

Each instance has a /instances/ url that shows its current federation links at least. It doesn't tell you its federation config, but you can at least tell if the federation list looks weirdly small or the blocklist looks weirdly big.

And you can see that monero house has a pretty short list in comparison. This is absolutely a page I was scoping out when shopping around for an instance to join. I would also spend some time scrolling through /modlog/ to get a feel for what their moderation was like in practice.

[–] 7eter@feddit.de 5 points 1 year ago (2 children)

Lemmy Map does something in that direction - but in the form of a graph instead of a table.

Note: don't open on mobile lmao

[–] maltfield@lemmy.ml 3 points 1 year ago (1 children)

thanks! Unfortunately that site is basically unuseable for me, but perhaps if we dig into their code, we'll find how they figure out the federation state..

[–] 7eter@feddit.de 1 points 1 year ago* (last edited 1 year ago) (1 children)

I believe I've read somewhere that @wintermute@feddit.de was intending to publish it.

[–] maltfield@lemmy.ml 1 points 1 year ago (2 children)

The sourcecode is here afaict https://codeberg.org/wintermute/lemmymap

It says they use lemmy-stats-crawler, but I can't get it to run on Debian 11. And I can't open issues on that repo.

[–] nutomic@lemmy.ml 3 points 1 year ago (1 children)

Make sure you use rustup to install cargo. The debian version is probably too old.

[–] wintermute@feddit.de 2 points 1 year ago* (last edited 1 year ago)

I would have to take a look, it's probably outdated, there is also https://github.com/LemmyNet/lemmy-stats-crawler

[–] Barbarian@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (1 children)

That's an open issue on Github. The devs are currently in the middle of trying to optimize performance so the whole network doesn't go down on the 12th. If you know any webdevs willing to have at it, great!

[–] maltfield@lemmy.ml 3 points 1 year ago (1 children)
[–] Barbarian@lemmy.ml 1 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah, I noticed afterwards xD

[–] maltfield@lemmy.ml 2 points 1 year ago

anyway, I'm posting here to figure out what data can be queried. Otherwise, it's manual entry and that's a maintenance nightmare.

[–] wintermute@feddit.de 3 points 1 year ago* (last edited 1 year ago) (1 children)
[–] maltfield@lemmy.ml 2 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks! I can't find any field that specifies open or blocklist or allowlist but I do see arrays for linked and allowed and blocked. My best-guess is:

  • if allowed is not null, then the server's federation is in allowlist state
  • if blocked is not null, then the server's federation is in blocklist state

...but I could be totally wrong

And I don't know how to determine if the server's federation state is open.

It would be good if we had three example servers -- one in each state (open, blocklist, and allowlist) so that I could compare the API's output for each.

Edit: /u/Nutomic clarified this on GitHub:

Regarding "federation state": You can have a blocklist, then Lemmy will federate with every instance except blocked ones. Or have an allowlist, then it will only federate with the allowed ones. If neither is set then it also federate with everything. Using allowlist and blocklist together doesnt make much sense, then it would only federate with allowed instances which are not in the blocklist.

[–] wintermute@feddit.de 2 points 1 year ago* (last edited 1 year ago) (1 children)

if allowed is not null, then the server’s federation is in allowlist state

this.

otherwise it's open federation with or without blocklist

[–] maltfield@lemmy.ml 1 points 1 year ago* (last edited 1 year ago) (1 children)

wait but there's three states. If it's not allowlist then it's either open or blocklist -- according to the documentation.

Are you suggesting that if both are null then the federation state is set to open?

[–] wintermute@feddit.de 2 points 1 year ago

according to the documentation open and blocklist have open federation.

[–] maltfield@lemmy.ml 2 points 1 year ago

Related: see also my feature request for join-lemmy.org to display this information about each instance in a data table that compares each instance available:

load more comments
view more: next β€Ί