Merge branch 'fix/vapid_keyword_fallback' into 'develop'
push: make vapid_config fallback to empty array See merge request pleroma/pleroma!4276
This commit is contained in:
commit
91b26c683a
2 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ defmodule Pleroma.Web.Push do
|
|||
end
|
||||
|
||||
def vapid_config do
|
||||
Application.get_env(:web_push_encryption, :vapid_details, nil)
|
||||
Application.get_env(:web_push_encryption, :vapid_details, [])
|
||||
end
|
||||
|
||||
def enabled, do: match?([subject: _, public_key: _, private_key: _], vapid_config())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue