• freamon@preferred.social
    link
    fedilink
    English
    arrow-up
    18
    ·
    12 days 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
      16
      ·
      12 days 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/[email protected].

      • freamon@preferred.social
        link
        fedilink
        English
        arrow-up
        12
        ·
        12 days 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
          10
          ·
          edit-2
          12 days 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
      ·
      12 days 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.

  • onlinepersona
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    10 days ago

    Which stats? On mbin, if you hover over a user’s name, you can see their “reputation score”. Logged in mbin users can go to their profile and see how many cumulative points they made that day (sum of positive and negative upvotes). It’s a bit confusing to me why mbin decided to start going the reddit route and introduce karma when most people on the fediverse seem to enjoy being unaware of their score.

    Anti Commercial-AI license