diff options
author | lambda <lain@soykaf.club> | 2019-04-08 11:53:18 +0000 |
---|---|---|
committer | lambda <lain@soykaf.club> | 2019-04-08 11:53:18 +0000 |
commit | 4977e96fa408e8148a355b3c759af34ae3ca312d (patch) | |
tree | decc2cc28908a79df003ad668fb06cb74fa97159 /lib/pleroma/web/push/impl.ex | |
parent | e19590c93f9adc5d743867b048aad9528810fc53 (diff) | |
parent | 9abf832b034bf3867272bd178d168c641129eff0 (diff) | |
download | pleroma-4977e96fa408e8148a355b3c759af34ae3ca312d.tar.gz |
Merge branch 'use-jobs-in-webpush' into 'develop'
Use PleromaJobQueue in Pleroma.Web.Push
See merge request pleroma/pleroma!1023
Diffstat (limited to 'lib/pleroma/web/push/impl.ex')
-rw-r--r-- | lib/pleroma/web/push/impl.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/push/impl.ex b/lib/pleroma/web/push/impl.ex index 863573185..2233480c5 100644 --- 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" - @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 ) @@ -50,7 +50,7 @@ defmodule Pleroma.Web.Push.Impl do end end - def perform_send(_) do + def perform(_) do Logger.warn("Unknown notification type") :error end |