twitter api: user view: show default message scope if known
[akkoma] / 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