twitterapi: user view: return if an account is locked or not
This commit is contained in:
parent
d96377f359
commit
ba8dab7542
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user