InstanceView: Add chat limit, description limit
authorlain <lain@soykaf.club>
Mon, 6 Jul 2020 09:12:37 +0000 (11:12 +0200)
committerlain <lain@soykaf.club>
Mon, 6 Jul 2020 09:12:37 +0000 (11:12 +0200)
lib/pleroma/web/mastodon_api/views/instance_view.ex
test/web/mastodon_api/controllers/instance_controller_test.exs

index 89e48fba51c9b54170675648c28ec536c3c1ab22..5deb0d7ed60ba4f71edfdf49a97e1dbb7a7fad98 100644 (file)
@@ -34,6 +34,8 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
       background_upload_limit: Keyword.get(instance, :background_upload_limit),
       banner_upload_limit: Keyword.get(instance, :banner_upload_limit),
       background_image: Keyword.get(instance, :background_image),
+      chat_limit: Keyword.get(instance, :chat_limit),
+      description_limit: Keyword.get(instance, :description_limit),
       pleroma: %{
         metadata: %{
           account_activation_required: Keyword.get(instance, :account_activation_required),
index 95ee26416768c7629be362c73ff66ea1aef44666..cc880d82ca4ab814e73cb04debee6d128bf04b65 100644 (file)
@@ -32,7 +32,9 @@ defmodule Pleroma.Web.MastodonAPI.InstanceControllerTest do
              "avatar_upload_limit" => _,
              "background_upload_limit" => _,
              "banner_upload_limit" => _,
-             "background_image" => _
+             "background_image" => _,
+             "chat_limit" => _,
+             "description_limit" => _
            } = result
 
     assert result["pleroma"]["metadata"]["account_activation_required"] != nil