projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix digest mix task on OTP releases
[akkoma]
/
lib
/
pleroma
/
web
/
push
/
subscription.ex
diff --git
a/lib/pleroma/web/push/subscription.ex
b/lib/pleroma/web/push/subscription.ex
index b99b0c5fb494279896e5061311739de4b5e17ab6..3e401a49026231941bb6583908ab0ce992ca12da 100644
(file)
--- a/
lib/pleroma/web/push/subscription.ex
+++ b/
lib/pleroma/web/push/subscription.ex
@@
-25,9
+25,9
@@
defmodule Pleroma.Web.Push.Subscription do
timestamps()
end
timestamps()
end
- @supported_alert_types ~w[follow favourite mention reblog]
+ @supported_alert_types ~w[follow favourite mention reblog]
a
- defp alerts(%{
"data" => %{"alerts" =>
alerts}}) do
+ defp alerts(%{
data: %{alerts:
alerts}}) do
alerts = Map.take(alerts, @supported_alert_types)
%{"alerts" => alerts}
end
alerts = Map.take(alerts, @supported_alert_types)
%{"alerts" => alerts}
end
@@
-44,9
+44,9
@@
defmodule Pleroma.Web.Push.Subscription do
%User{} = user,
%Token{} = token,
%{
%User{} = user,
%Token{} = token,
%{
-
"subscription" =>
%{
-
"endpoint" =>
endpoint,
-
"keys" => %{"auth" => key_auth, "p256dh" =>
key_p256dh}
+
subscription:
%{
+
endpoint:
endpoint,
+
keys: %{auth: key_auth, p256dh:
key_p256dh}
}
} = params
) do
}
} = params
) do