Properly disable Web Push if no VAPID key is set
This commit is contained in:
parent
6822916183
commit
331396cbcd
3 changed files with 35 additions and 16 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue