mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 16:05:40 +01:00
Add is_admin and is_moderator boolean fields to the user view
This commit is contained in:
parent
c46490b199
commit
398c81f9c8
@ -105,6 +105,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
|
|||||||
"cover_photo" => User.banner_url(user) |> MediaProxy.url(),
|
"cover_photo" => User.banner_url(user) |> MediaProxy.url(),
|
||||||
"background_image" => image_url(user.info.background) |> MediaProxy.url(),
|
"background_image" => image_url(user.info.background) |> MediaProxy.url(),
|
||||||
"is_local" => user.local,
|
"is_local" => user.local,
|
||||||
|
"is_moderator" => user.info.is_moderator,
|
||||||
|
"is_admin" => user.info.is_admin,
|
||||||
"locked" => user.info.locked,
|
"locked" => user.info.locked,
|
||||||
"default_scope" => user.info.default_scope,
|
"default_scope" => user.info.default_scope,
|
||||||
"no_rich_text" => user.info.no_rich_text,
|
"no_rich_text" => user.info.no_rich_text,
|
||||||
|
@ -97,6 +97,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
|
|||||||
"cover_photo" => banner,
|
"cover_photo" => banner,
|
||||||
"background_image" => nil,
|
"background_image" => nil,
|
||||||
"is_local" => true,
|
"is_local" => true,
|
||||||
|
"is_admin" => false,
|
||||||
|
"is_moderator" => false,
|
||||||
"locked" => false,
|
"locked" => false,
|
||||||
"default_scope" => "public",
|
"default_scope" => "public",
|
||||||
"no_rich_text" => false,
|
"no_rich_text" => false,
|
||||||
@ -145,6 +147,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
|
|||||||
"cover_photo" => banner,
|
"cover_photo" => banner,
|
||||||
"background_image" => nil,
|
"background_image" => nil,
|
||||||
"is_local" => true,
|
"is_local" => true,
|
||||||
|
"is_admin" => false,
|
||||||
|
"is_moderator" => false,
|
||||||
"locked" => false,
|
"locked" => false,
|
||||||
"default_scope" => "public",
|
"default_scope" => "public",
|
||||||
"no_rich_text" => false,
|
"no_rich_text" => false,
|
||||||
@ -194,6 +198,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
|
|||||||
"cover_photo" => banner,
|
"cover_photo" => banner,
|
||||||
"background_image" => nil,
|
"background_image" => nil,
|
||||||
"is_local" => true,
|
"is_local" => true,
|
||||||
|
"is_admin" => false,
|
||||||
|
"is_moderator" => false,
|
||||||
"locked" => false,
|
"locked" => false,
|
||||||
"default_scope" => "public",
|
"default_scope" => "public",
|
||||||
"no_rich_text" => false,
|
"no_rich_text" => false,
|
||||||
@ -257,6 +263,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
|
|||||||
"cover_photo" => banner,
|
"cover_photo" => banner,
|
||||||
"background_image" => nil,
|
"background_image" => nil,
|
||||||
"is_local" => true,
|
"is_local" => true,
|
||||||
|
"is_admin" => false,
|
||||||
|
"is_moderator" => false,
|
||||||
"locked" => false,
|
"locked" => false,
|
||||||
"default_scope" => "public",
|
"default_scope" => "public",
|
||||||
"no_rich_text" => false,
|
"no_rich_text" => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user