Web.TwitterAPI.UserView: Add rights.admin
This commit is contained in:
parent
e1de866f95
commit
b43d630f30
3 changed files with 19 additions and 6 deletions
|
|
@ -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}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue