twitterapi: user view: return if an account is locked or not
This commit is contained in:
parent
d96377f359
commit
ba8dab7542
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
|
||||||
"statusnet_profile_url" => user.ap_id,
|
"statusnet_profile_url" => user.ap_id,
|
||||||
"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,
|
||||||
|
"locked" => !!user.info["locked"]
|
||||||
}
|
}
|
||||||
|
|
||||||
if assigns[:token] do
|
if assigns[:token] do
|
||||||
|
|
Loading…
Reference in a new issue