From: KokaKiwi Date: Sun, 17 Feb 2019 23:21:13 +0000 (+0100) Subject: Set content types settings on mastofe endpoint. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=bf43f055ddbfdd8be065eace43de1a742674b1bc;p=akkoma Set content types settings on mastofe endpoint. --- diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 056be49b0..2874dfb6d 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -1128,7 +1128,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do compose: %{ me: "#{user.id}", default_privacy: user.info.default_scope, - default_sensitive: false + default_sensitive: false, + allow_content_types: Config.get([:instance, :allowed_post_formats]) }, media_attachments: %{ accept_content_types: [