From: William Pitcock Date: Tue, 29 May 2018 14:13:34 +0000 (+0000) Subject: twitterapi: user view: return if an account is locked or not X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ba8dab75426fbd881c7b8fd814934d46fc48e9ba;p=akkoma twitterapi: user view: return if an account is locked or not --- diff --git a/lib/pleroma/web/twitter_api/views/user_view.ex b/lib/pleroma/web/twitter_api/views/user_view.ex index 31527caae..711008973 100644 --- a/lib/pleroma/web/twitter_api/views/user_view.ex +++ b/lib/pleroma/web/twitter_api/views/user_view.ex @@ -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