Add char_limit to initial-state of mastofe
authorMorgan Bazalgette <the@howl.moe>
Thu, 29 Mar 2018 22:59:49 +0000 (00:59 +0200)
committerMorgan Bazalgette <the@howl.moe>
Thu, 29 Mar 2018 22:59:49 +0000 (00:59 +0200)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 70a7fa863d59cedddb23d2710931ac381570d6d3..9428acd7e828a6838ef2f482f5a21532343e88fd 100644 (file)
@@ -564,7 +564,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
         },
         push_subscription: nil,
         accounts: accounts,
-        custom_emojis: mastodon_emoji
+        custom_emojis: mastodon_emoji,
+        char_limit: Keyword.get(@instance, :limit)
       } |> Jason.encode!
       conn
       |> put_layout(false)