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
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ def render("user.json", %{user: user = %User{}} = assigns) 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