• RedWizard [he/him]@lemmy.ml
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    17 hours ago

    Ok, you have this completely off base about it “not doing anything”. While I might be wrong about it defederating, what this code ACTUALLY does is rate other instances defederation lists based on this hard coded list. Let me explain:

    The site_instance_chooser_view() function in /app/api/alpha/views.py provides a JSON representation of the current site’s metadata for the instance chooser feature. This feature allows users to browse and compare different Fediverse instances before choosing one to join.

    Within site_instance_chooser_view(), the defed_list variable is defined as follows (lines 1148‑1151):

    defed_list = BannedInstances.query.filter(or_(BannedInstances.domain == 'hexbear.net',
                                                  BannedInstances.domain == 'lemmygrad.ml',
                                                  BannedInstances.domain == 'hilariouschaos.com',
                                                  BannedInstances.domain == 'lemmy.ml')).order_by(BannedInstances.domain).all()
    

    This query retrieves only four specific domains from the BannedInstances table:

    1. hexbear.net
    2. lemmygrad.ml
    3. hilariouschaos.com
    4. lemmy.ml

    The resulting list is used to populate the defederation field in the returned JSON (line 1187):

    'defederation': list(set([instance.domain for instance in defed_list])),
    

    The defederation field is part of the site metadata returned by the API endpoint /api/alpha/site/instance_chooser. This endpoint is called by the instance‑chooser UI (/auth/instance_chooser) when a user clicks “More” on an instance card.

    The template app/templates/auth/instance_chooser.html uses the defederation list to compute a defederation quality rating. The rating is based on how many of the four watched domains are blocked:

    • ≥3 blocked → “Good”
    • 2 blocked → “Ok”
    • 1 blocked → “Minimal”
    • <1 blocked → “Negligent”

    This rating is displayed in the instance details modal under the “Defederation” label (line 114 of the template).

    The UI also contains commented‑out code (lines 124‑130) that would show individual status indicators for each of the four domains, but this is currently disabled.

    This is problematic for a number of reasons, most of all is that this rating that it generates is NOT transparent to the user. This page is used on PieFeds main page when you go to register, it’s part of the instance picker. The defederation rating under More is where this shows up. For instance, this means that instances like anarchist.nexus have a “OK” rating but instances like multiverse.soulism.net have a “GOOD” rating.

    Anarchist.nexus has an “OK” raiding because they block Lemmygrad.ml (socialist) and hilariouschaos.com (MAGA instance)

    multiverse.soulism.net has a “GOOD” rating because they block Lemmygrad.ml (socialist), Hexbear.net (socialist), lemmy.ml (operated by open communists).

    So the Defederation rating has an OBVIOUS BIAS that isn’t explained to the users at all. Not only is the bias not explained it doesn’t even contain all of the FASCIST INSTANCES IN ITS CALCULATION.

    • Skavau@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      12
      ·
      16 hours ago

      This is problematic for a number of reasons, most of all is that this rating that it generates is NOT transparent to the user. This page is used on PieFeds main page when you go to register, it’s part of the instance picker. The defederation rating under More is where this shows up. For instance, this means that instances like anarchist.nexus have a “OK” rating but instances like multiverse.soulism.net have a “GOOD” rating.

      https://piefed.social/auth/instance_chooser

      The only measurements here seem to be stability.

      “These servers are ordered by speed so it may vary depending on time of day, etc”

        • Skavau@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          12
          ·
          edit-2
          13 hours ago

          Okay, fair enough. I’d actually argue that the field doesn’t really make much sense to new users in the first place without context. “Good” is obviously loaded with bias preference in this context, but “Minimal” doesnt’ necessarily convey an negative opinion just based on the word itself. I could ask him to add more instances here (although the fascist instances that I know of here are so minor and obscure that they likely didn’t enter his mind - except hilariouschaos) and/or change the wording and add a description so its meaningful.

          Also to detach the code so other join.piefed pages can rip it out or isolate their own instances they suggest disfavour towards.

          • EvenOdds@lemmy.zip
            link
            fedilink
            arrow-up
            9
            ·
            12 hours ago

            How about not hard code this in the first place. If they are hell bent on this logic then let each instance admin list the instances they want to use?