UtilController: Fix statusnet config api compatibility.
authorRoger Braun <roger@rogerbraun.net>
Fri, 9 Feb 2018 12:43:12 +0000 (13:43 +0100)
committerRoger Braun <roger@rogerbraun.net>
Fri, 9 Feb 2018 12:43:12 +0000 (13:43 +0100)
lib/pleroma/web/twitter_api/controllers/util_controller.ex

index 0b7c64015bccd7151b63269653cfc01a2b662ea4..503719dbf5d3ff37485237dfdf4221e28594f494 100644 (file)
@@ -121,7 +121,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
               site: %{
                 name: Keyword.get(@instance, :name),
                 server: Web.base_url,
-                textlimit: Keyword.get(@instance, :limit),
+                textlimit: to_string(Keyword.get(@instance, :limit)),
                 closed: if(Keyword.get(@instance, :registrations_open), do: "0", else: "1")
               }
              })