Add uploadlimit to Twitter API config
authorRin Toshaka <rinpatch@sdf.org>
Fri, 7 Dec 2018 19:03:30 +0000 (20:03 +0100)
committerRin Toshaka <rinpatch@sdf.org>
Fri, 7 Dec 2018 19:03:30 +0000 (20:03 +0100)
lib/pleroma/web/twitter_api/controllers/util_controller.ex

index 09277901063161df6299720a7efbc4642be719fb..36ecefa76b2ae57ef42f018a45a9e9c23017874f 100644 (file)
@@ -165,6 +165,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
           description: Keyword.get(instance, :description),
           server: Web.base_url(),
           textlimit: to_string(Keyword.get(instance, :limit)),
+          uploadlimit: to_string(Keyword.get(instance, :upload_limit)),
           closed: if(Keyword.get(instance, :registrations_open), do: "0", else: "1"),
           private: if(Keyword.get(instance, :public, true), do: "0", else: "1"),
           vapidPublicKey: vapid_public_key