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:
lain 2024-11-12 10:01:05 +00:00
commit 91b26c683a
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Make vapid_config return empty array, fixing preloading for instances without push notifications configured

View file

@ -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())