projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma]
/
lib
/
pleroma
/
web
/
push
/
push.ex
diff --git
a/lib/pleroma/web/push/push.ex
b/lib/pleroma/web/push/push.ex
index 951dab53531fd6f13c28bac7cd6eb5fdf381b853..5259e8e33083c248f38621fcfdc693e63dcb2fc9 100644
(file)
--- a/
lib/pleroma/web/push/push.ex
+++ b/
lib/pleroma/web/push/push.ex
@@
-13,15
+13,15
@@
defmodule Pleroma.Web.Push do
# Client API #
##############
# Client API #
##############
- def start_link
()
do
+ def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
- def vapid_config
()
do
+ def vapid_config do
Application.get_env(:web_push_encryption, :vapid_details, [])
end
Application.get_env(:web_push_encryption, :vapid_details, [])
end
- def enabled
()
do
+ def enabled do
case vapid_config() do
[] -> false
list when is_list(list) -> true
case vapid_config() do
[] -> false
list when is_list(list) -> true