1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-27 21:25:20 +01:00

twitterapi: user view: return if an account is locked or not

This commit is contained in:
William Pitcock 2018-05-29 14:13:34 +00:00
parent d96377f359
commit ba8dab7542

View File

@ -51,7 +51,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
"statusnet_profile_url" => user.ap_id,
"cover_photo" => User.banner_url(user) |> MediaProxy.url(),
"background_image" => image_url(user.info["background"]) |> MediaProxy.url(),
"is_local" => user.local
"is_local" => user.local,
"locked" => !!user.info["locked"]
}
if assigns[:token] do