• freamon@preferred.social
    link
    fedilink
    English
    arrow-up
    16
    ·
    14 hours ago

    PieFed isn’t hiding mods - when Lemmy fails to get them, it’s for its own mysterious reasons.

    In ActivityPub, to get the moderators of this community you can do this from the command-line:
    curl --header 'accept: application/activity+json' --location https://feddit.uk/c/fedimemes/moderators | jq .orderedItems

    To get the moderators of a PieFed community, it’s exactly the same:
    curl --header 'accept: application/activity+json' --location https://piefed.social/c/50501/moderators | jq .orderedItems

    In both cases, the mods URL comes from the attributedTo field for the community.

    • flamingos-cant@feddit.ukM
      link
      fedilink
      English
      arrow-up
      13
      ·
      13 hours ago

      It’s because Piefed is returning the wrong Content-Type for moderator collections specifically. You’re returning application/json not application/activity+json.

      curl -H 'Accept: application/activity+json' -v https://piefed.social/c/50501/moderators 2>&1 | grep content-type
      < content-type: application/json
      < x-content-type-options: nosniff
      

      I assume this is why MBin also doesn’t report any moderators for that community https://fedia.io/m/50501@piefed.social.

      • freamon@preferred.social
        link
        fedilink
        English
        arrow-up
        8
        ·
        12 hours ago

        Ah, shit. Cheers. The amount of things learned from the comments under memes is probably a bit high, but I’ll send a commit to fix this in a minute.

        Does Lemmy look at the mods URL again when it decides to refresh a community (or when it receives an Update / Group) ? If not, then PieFed instances might need to send out some “Add” activities.

        • flamingos-cant@feddit.ukM
          link
          fedilink
          English
          arrow-up
          7
          ·
          edit-2
          11 hours ago

          The amount of things learned from the comments under memes is probably a bit high, but I’ll send a commit to fix this in a minute.

          Who needs an issues tracker when you have a meme tracker, eh?

          Does Lemmy look at the mods URL again when it decides to refresh a community (or when it receives an Update / Group)

          Yes to both. Updating a community and fetching a new community are identical operations in Lemmy.

    • Stovetop@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      13 hours ago

      Might be the way in which the data presents? The path can be identical, but if one service receives a metaphorical PNG when expecting a metaphorical JPEG, it could explain why it fails to correctly register.