Properly disable Web Push if no VAPID key is set

This commit is contained in:
href 2018-12-09 13:45:21 +01:00
commit 331396cbcd
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
3 changed files with 35 additions and 16 deletions

View file

@ -156,8 +156,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
|> 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)
data = %{
name: Keyword.get(instance, :name),