Remove camelCase from the keys
authorMark Felder <feld@FreeBSD.org>
Thu, 2 Jul 2020 17:55:08 +0000 (12:55 -0500)
committerMark Felder <feld@FreeBSD.org>
Thu, 2 Jul 2020 17:55:08 +0000 (12:55 -0500)
lib/pleroma/web/mastodon_api/views/instance_view.ex

index 347480d4949cd7c3020251bf4de3f0b909b59ddb..89e48fba51c9b54170675648c28ec536c3c1ab22 100644 (file)
@@ -93,10 +93,10 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
 
   def fields_limits do
     %{
-      maxFields: Config.get([:instance, :max_account_fields]),
-      maxRemoteFields: Config.get([:instance, :max_remote_account_fields]),
-      nameLength: Config.get([:instance, :account_field_name_length]),
-      valueLength: Config.get([:instance, :account_field_value_length])
+      max_fields: Config.get([:instance, :max_account_fields]),
+      max_remote_fields: Config.get([:instance, :max_remote_account_fields]),
+      name_length: Config.get([:instance, :account_field_name_length]),
+      value_length: Config.get([:instance, :account_field_value_length])
     }
   end
 end