Set content types settings on mastofe endpoint.
authorKokaKiwi <kokakiwi@kokakiwi.net>
Sun, 17 Feb 2019 23:21:13 +0000 (00:21 +0100)
committerKokaKiwi <kokakiwi@kokakiwi.net>
Mon, 4 Mar 2019 11:00:02 +0000 (12:00 +0100)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 056be49b08e3f29751c4c95affcc6ecc8db4c104..2874dfb6d4f50a47bdd9cf59a8d108ff57989607 100644 (file)
@@ -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: [