aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-12-23 18:31:37 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-12-28 17:38:32 +0100
commitb43d630f307110b5fa552c28c9fa0ebae09e85f2 (patch)
tree6087fa355a7f12d74153c51a9af2c9ff6cbeadbb /lib/pleroma/web/mastodon_api
parente1de866f95c7740d64070ff023b4bdcc013decc4 (diff)
downloadpleroma-b43d630f307110b5fa552c28c9fa0ebae09e85f2.tar.gz
Web.TwitterAPI.UserView: Add rights.admin
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 22715bb76..a4b17e4f8 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -966,7 +966,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
max_toot_chars: limit
},
rights: %{
- delete_others_notice: !!user.info.is_moderator
+ delete_others_notice: !!user.info.is_moderator,
+ admin: !!user.info.is_admin
},
compose: %{
me: "#{user.id}",