Web.TwitterAPI.UserView: Add rights.admin
This commit is contained in:
parent
e1de866f95
commit
b43d630f30
3 changed files with 19 additions and 6 deletions
|
|
@ -70,7 +70,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
|
|||
"profile_image_url_profile_size" => image,
|
||||
"profile_image_url_original" => image,
|
||||
"rights" => %{
|
||||
"delete_others_notice" => !!user.info.is_moderator
|
||||
"delete_others_notice" => !!user.info.is_moderator,
|
||||
"admin" => !!user.info.is_admin
|
||||
},
|
||||
"screen_name" => user.nickname,
|
||||
"statuses_count" => user_info[:note_count],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue