MastoAPI: Add max_toot_chars.
authorRoger Braun <roger@rogerbraun.net>
Mon, 20 Nov 2017 07:54:47 +0000 (08:54 +0100)
committerRoger Braun <roger@rogerbraun.net>
Mon, 20 Nov 2017 07:54:47 +0000 (08:54 +0100)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 9c50e850b057d3d66871b8a233c7a2930d30da70..fc7f210969eae6f2e72b8a968afab5e55fa78863 100644 (file)
@@ -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)