twitterapi: user view: return if an account is locked or not
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 29 May 2018 14:13:34 +0000 (14:13 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 11 Jun 2018 22:15:53 +0000 (22:15 +0000)
lib/pleroma/web/twitter_api/views/user_view.ex

index 31527caae4aec202fc490fd0ad8236e491843555..71100897373b88f88b1144fb2144e3657af60455 100644 (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