this post was submitted on 07 Jun 2023
7 points (100.0% liked)

Asklemmy

43811 readers
1041 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
 

If you query the lemmy API, you get a ton of fun JSON data:

One thing interesting that I saw was huge lists of other federated servers in the federated_instances dictionary.

There's three arrays in there:

  1. linked
  2. allowed
  3. blocked

What do each of these mean, and what impact does it have on the server when they're set to some list of hosts or if they're null?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] poVoq 3 points 1 year ago* (last edited 1 year ago) (1 children)

The default is that any instance can federate, but only after a user actively requested that it is added to the list of linked instances. There is no central relay or so that tells an instance which other instances exists, so it needs to build up a list of known linked instances.

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

So if a user searches for a community on another instance, does that mean that the instance that they're following is automatically added to the linked list or no?

If so, does that happen when they subscribe or when they search?

[โ€“] poVoq 2 points 1 year ago* (last edited 1 year ago) (1 children)

As far as I know, yes. I am not 100% sure if searching but not interacting is sufficient. But I think a reply is sufficient, not only actual subscriptions.

[โ€“] maltfield@lemmy.ml 1 points 1 year ago (1 children)

Interesting. So I guess that functionality is disabled when the admin has a non-null list set for allowed

[โ€“] poVoq 2 points 1 year ago

Yes, that is the point of a strict allow-list.