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 git.pleroma.social:pleroma/pleroma into feature/digest...
[akkoma]
/
lib
/
pleroma
/
web
/
push
/
impl.ex
diff --git
a/lib/pleroma/web/push/impl.ex
b/lib/pleroma/web/push/impl.ex
index 8635731852b9921b61093d1b5c5e432af17d99fa..2233480c5ed9c2903f78ee246e5dbf5280e215d4 100644
(file)
--- a/
lib/pleroma/web/push/impl.ex
+++ b/
lib/pleroma/web/push/impl.ex
@@
-19,8
+19,8
@@
defmodule Pleroma.Web.Push.Impl do
@types ["Create", "Follow", "Announce", "Like"]
@doc "Performs sending notifications for user subscriptions"
@types ["Create", "Follow", "Announce", "Like"]
@doc "Performs sending notifications for user subscriptions"
- @spec perform
_send(Notification.t()) :: list(any)
- def perform
_send
(
+ @spec perform
(Notification.t()) :: list(any) | :error
+ def perform(
%{activity: %{data: %{"type" => activity_type}, id: activity_id}, user_id: user_id} =
notif
)
%{activity: %{data: %{"type" => activity_type}, id: activity_id}, user_id: user_id} =
notif
)
@@
-50,7
+50,7
@@
defmodule Pleroma.Web.Push.Impl do
end
end
end
end
- def perform
_send
(_) do
+ def perform(_) do
Logger.warn("Unknown notification type")
:error
end
Logger.warn("Unknown notification type")
:error
end