Add char_limit to initial-state of mastofe

This commit is contained in:
Morgan Bazalgette 2018-03-30 00:59:49 +02:00
parent f8f3abe1be
commit 457e040473
No known key found for this signature in database
GPG key ID: 40D328300D245DA5

View file

@ -564,7 +564,8 @@ def index(%{assigns: %{user: user}} = conn, _params) 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)