Add moderator function.

This commit is contained in:
lain 2018-02-20 18:44:50 +01:00
commit 5bc810c452
2 changed files with 22 additions and 5 deletions

View file

@ -41,7 +41,9 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
"profile_image_url_https" => image,
"profile_image_url_profile_size" => image,
"profile_image_url_original" => image,
"rights" => %{},
"rights" => %{
"delete_others_notice" => !!user.info["is_moderator"]
},
"screen_name" => user.nickname,
"statuses_count" => user_info[:note_count],
"statusnet_profile_url" => user.ap_id,