twitter api: user view: show default message scope if known
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Jun 2018 06:55:32 +0000 (06:55 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 27 Jun 2018 13:15:50 +0000 (13:15 +0000)
lib/pleroma/web/twitter_api/views/user_view.ex

index 71100897373b88f88b1144fb2144e3657af60455..9c8460378cb200c5f35835ce64dc31bb09bb59fd 100644 (file)
@@ -52,7 +52,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
       "cover_photo" => User.banner_url(user) |> MediaProxy.url(),
       "background_image" => image_url(user.info["background"]) |> MediaProxy.url(),
       "is_local" => user.local,
-      "locked" => !!user.info["locked"]
+      "locked" => !!user.info["locked"],
+      "default_scope" => user.info["default_scope"] || "public"
     }
 
     if assigns[:token] do