Add is_admin and is_moderator boolean fields to the user view
This commit is contained in:
parent
c46490b199
commit
398c81f9c8
2 changed files with 10 additions and 0 deletions
|
|
@ -105,6 +105,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
|
|||
"cover_photo" => User.banner_url(user) |> MediaProxy.url(),
|
||||
"background_image" => image_url(user.info.background) |> MediaProxy.url(),
|
||||
"is_local" => user.local,
|
||||
"is_moderator" => user.info.is_moderator,
|
||||
"is_admin" => user.info.is_admin,
|
||||
"locked" => user.info.locked,
|
||||
"default_scope" => user.info.default_scope,
|
||||
"no_rich_text" => user.info.no_rich_text,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue