Merge branch 'pleroma-feature/compat/push-subscriptions' into 'develop'
authorhref <href+git-pleroma@random.sh>
Fri, 14 Dec 2018 18:50:44 +0000 (18:50 +0000)
committerhref <href+git-pleroma@random.sh>
Fri, 14 Dec 2018 18:50:44 +0000 (18:50 +0000)
Improve web push

Closes #393, #422, and #452

See merge request pleroma/pleroma!524

1  2 
lib/pleroma/web/twitter_api/controllers/util_controller.ex

index 387f5bd716335e76a0097074cc219ad8044817ae,29edca9fea7d8f738537946e9c80892d418e350b..a8e3467c46a0398bd6827b351d867a652f7ade46
@@@ -156,16 -156,8 +156,15 @@@ defmodule Pleroma.Web.TwitterAPI.UtilCo
          |> send_resp(200, response)
  
        _ ->
-         vapid_public_key =
-           Keyword.get(Application.get_env(:web_push_encryption, :vapid_details), :public_key)
+         vapid_public_key = Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
  
 +        uploadlimit = %{
 +          uploadlimit: to_string(Keyword.get(instance, :upload_limit)),
 +          avatarlimit: to_string(Keyword.get(instance, :avatar_upload_limit)),
 +          backgroundlimit: to_string(Keyword.get(instance, :background_upload_limit)),
 +          bannerlimit: to_string(Keyword.get(instance, :banner_upload_limit))
 +        }
 +
          data = %{
            name: Keyword.get(instance, :name),
            description: Keyword.get(instance, :description),