From: Haelwenn (lanodan) Monnier Date: Sat, 23 Jun 2018 09:54:04 +0000 (+0200) Subject: [Pleroma.Web.MastodonApi.MastodonApiController] Add initial_state.meta.max_toot_chars X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5a4a45b875276414be11d9348540b6028062f9c3;p=akkoma [Pleroma.Web.MastodonApi.MastodonApiController] Add initial_state.meta.max_toot_chars --- diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 71f34a488..dab255ee2 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -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}",