diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-01-27 10:21:13 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-01-27 10:33:22 +0100 |
commit | a65c18859307f4aacf42eb5dd14e63ad76747a6d (patch) | |
tree | bcbe4dfbece92e0db7b3fb82ac020dda0a9fa245 /lib | |
parent | 717579330427ed4f78ee578d008818c07106318f (diff) | |
download | pleroma-a65c18859307f4aacf42eb5dd14e63ad76747a6d.tar.gz |
Web.MastodonAPI.AccountView: Add is_moderator and is_admin
Closes: https://git.pleroma.social/pleroma/pleroma/issues/557
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index bfd6b8b22..0ba4289da 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -112,7 +112,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do # Pleroma extension pleroma: %{ confirmation_pending: user_info.confirmation_pending, - tags: user.tags + tags: user.tags, + is_moderator: user.info.is_moderator, + is_admin: user.info.is_admin } } end |