[Pleroma.Web.MastodonApi.MastodonApiController] Add initial_state.meta.max_toot_chars
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 23 Jun 2018 09:54:04 +0000 (11:54 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 23 Jun 2018 14:22:49 +0000 (16:22 +0200)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 71f34a488aeec9e26fb440f8d510d8df7541c65b..dab255ee234e53df4ed1276a87293d8d333921a4 100644 (file)
@@ -865,7 +865,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
             delete_modal: true,
             auto_play_gif: false,
             display_sensitive_media: false,
-            reduce_motion: false
+            reduce_motion: false,
+            max_toot_chars: Keyword.get(@instance, :limit)
           },
           compose: %{
             me: "#{user.id}",