From: William Pitcock Date: Sat, 23 Jun 2018 06:55:32 +0000 (+0000) Subject: twitter api: user view: show default message scope if known X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=dcdf7b6686fe3732ac8f9a93570dfa8a1412783a;p=akkoma twitter api: user view: show default message scope if known --- diff --git a/lib/pleroma/web/twitter_api/views/user_view.ex b/lib/pleroma/web/twitter_api/views/user_view.ex index 711008973..9c8460378 100644 --- a/lib/pleroma/web/twitter_api/views/user_view.ex +++ b/lib/pleroma/web/twitter_api/views/user_view.ex @@ -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