Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
silas ( silas@programming.dev )  to Lemmy App Development @lemm.eeEnglish ·
edit-2
3 years ago

[SOLVED] How do you figure out if a user is a community moderator? The admin property is included in the creator in the post view, but not seeing anything like "mod" or related.

message-square
message-square
3
link
fedilink
10
message-square

[SOLVED] How do you figure out if a user is a community moderator? The admin property is included in the creator in the post view, but not seeing anything like "mod" or related.

silas ( silas@programming.dev )  to Lemmy App Development @lemm.eeEnglish ·
edit-2
3 years ago
message-square
3
link
fedilink
  • nmtake ( nmtake@lemm.ee ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    I’d call getPersonDetails, getPost or getCommunity then check moderators attribute.

    • silas ( silas@programming.dev ) OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      Ah, that’ll work just fine since I’m already calling getCommunity, thanks! Would be convenient if it was provided in getPosts though

      • Prefix ( Prefix@lemm.ee ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

        Agreed - I wish this data was passed along in the standard comment/post response!

Lemmy App Development @lemm.ee

lemmydev@lemm.ee

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lemmydev@lemm.ee

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

  • programming questions related to the Lemmy platform
  • sharing your ideas, WIP, or released Lemmy-related work

Off-Topic:

  • general programming questions unrelated to Lemmy
  • feature requests for developers
  • sharing or promoting work not related to Lemmy
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 3 users / month
  • 2 users / 6 months
  • 6 local subscribers
  • 788 subscribers
  • 56 Posts
  • 146 Comments
  • Modlog
  • mods:
  • Prefix ( Prefix@lemm.ee ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code