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
1
changelog.d/vapid_keyword_fallback.fix
Normal file
1
changelog.d/vapid_keyword_fallback.fix
Normal file
|
@ -0,0 +1 @@
|
|||
Make vapid_config return empty array, fixing preloading for instances without push notifications configured
|
|
@ -20,7 +20,7 @@ def init 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…
Reference in a new issue