diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-06-23 11:54:04 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-06-23 16:22:49 +0200 |
commit | 5a4a45b875276414be11d9348540b6028062f9c3 (patch) | |
tree | d747de785eb20ac554d43feaf5a59fb70be425b2 /lib | |
parent | a05c0ff61dd3c9fe58f367d41fc9adc7a73b01a7 (diff) | |
download | pleroma-5a4a45b875276414be11d9348540b6028062f9c3.tar.gz |
[Pleroma.Web.MastodonApi.MastodonApiController] Add initial_state.meta.max_toot_chars
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 3 |
1 files changed, 2 insertions, 1 deletions
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}", |