mastodon api: use info["default_scope"] if available for post scope
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Jun 2018 06:53:29 +0000 (06:53 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 27 Jun 2018 13:15:42 +0000 (13:15 +0000)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 9d3f526c922b98a6d2329b2ddd10ebff3a232508..09e6b0b59ce22db8518a05a3eafbd0dd7e41c2d5 100644 (file)
@@ -873,7 +873,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
           },
           compose: %{
             me: "#{user.id}",
-            default_privacy: "public",
+            default_privacy: user.info["default_scope"] || "public",
             default_sensitive: false
           },
           media_attachments: %{