Add is_admin and is_moderator boolean fields to the user view

This commit is contained in:
eugenijm 2019-02-04 05:03:57 +03:00
commit 398c81f9c8
2 changed files with 10 additions and 0 deletions

View file

@ -97,6 +97,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"cover_photo" => banner,
"background_image" => nil,
"is_local" => true,
"is_admin" => false,
"is_moderator" => false,
"locked" => false,
"default_scope" => "public",
"no_rich_text" => false,
@ -145,6 +147,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"cover_photo" => banner,
"background_image" => nil,
"is_local" => true,
"is_admin" => false,
"is_moderator" => false,
"locked" => false,
"default_scope" => "public",
"no_rich_text" => false,
@ -194,6 +198,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"cover_photo" => banner,
"background_image" => nil,
"is_local" => true,
"is_admin" => false,
"is_moderator" => false,
"locked" => false,
"default_scope" => "public",
"no_rich_text" => false,
@ -257,6 +263,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
"cover_photo" => banner,
"background_image" => nil,
"is_local" => true,
"is_admin" => false,
"is_moderator" => false,
"locked" => false,
"default_scope" => "public",
"no_rich_text" => false,