aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-11-20 08:54:47 +0100
committerRoger Braun <roger@rogerbraun.net>2017-11-20 08:54:47 +0100
commitcf0bbf320d78ee116739d65a52b5f0a8b5772a6e (patch)
tree0b32f9bf541c11d6871224c341984a6a612f0857 /lib
parent690085158184e6ab216ac11b316191a7cb5ebafc (diff)
downloadpleroma-cf0bbf320d78ee116739d65a52b5f0a8b5772a6e.tar.gz
MastoAPI: Add max_toot_chars.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex3
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 9c50e850b..fc7f21096 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -106,7 +106,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
user_count: 1,
status_count: 2,
domain_count: 3
- }
+ },
+ max_toot_chars: Keyword.get(@instance, :limit)
}
json(conn, response)