aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-01-27 09:45:51 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-01-27 09:45:51 +0000
commitb58e4ddb10a1144a0afbac259cbe8bfcfd363ba6 (patch)
treebcbe4dfbece92e0db7b3fb82ac020dda0a9fa245 /lib
parent717579330427ed4f78ee578d008818c07106318f (diff)
parenta65c18859307f4aacf42eb5dd14e63ad76747a6d (diff)
downloadpleroma-b58e4ddb10a1144a0afbac259cbe8bfcfd363ba6.tar.gz
Merge branch 'features/masto-account-view-rights' into 'develop'
Web.MastodonAPI.AccountView: Add is_moderator and is_admin Closes #557 See merge request pleroma/pleroma!718
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex4
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