From: William Pitcock Date: Sat, 23 Jun 2018 06:53:29 +0000 (+0000) Subject: mastodon api: use info["default_scope"] if available for post scope X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4f6de34f4f40d408fb9200a5c4c908aec3ed9e91;p=akkoma mastodon api: use info["default_scope"] if available for post scope --- diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 9d3f526c9..09e6b0b59 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -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: %{