Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Pleroma/Akkoma roles #272

Open
kkostov opened this issue Mar 31, 2024 · 2 comments
Open

Add support for Pleroma/Akkoma roles #272

kkostov opened this issue Mar 31, 2024 · 2 comments

Comments

@kkostov
Copy link
Contributor

kkostov commented Mar 31, 2024

In #270 we've added support for Mastodon's Roles.

@technicat
Copy link
Contributor

technicat commented Mar 31, 2024

Note besides the Account.role added in #270 there is also an Account.roles which I didn't implement because it's not in the API doc yet and I only see an empty list so far, but from the Mastodon source looks like it should be an array of Account, e.g. from the account_verify_credentials_condensed.json test case:

"roles" : [

  ],
  "followers_count" : 417,
  "note" : "<p>Lorem ipsum</p>",
  "avatar" : "https://example.com/avatars/person.jpeg",
  "display_name" : "person",
  "created_at" : "2023-02-07T00:00:00.000Z",
  "noindex" : false,
  "role" : {
    "id" : "-99",
    "permissions" : "65536",
    "highlighted" : false,
    "name" : "",
    "color" : ""
  },

@technicat
Copy link
Contributor

btw, I also didn't include the boolean Account.group property, which is documented since Mastodon 3.1 but I'm still not clear what's a "Group actor"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants