diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-24 18:37:58 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-24 18:37:58 +0400 |
commit | c56c0a3d23929f166f4d95e5c6e96bbf0df8a35e (patch) | |
tree | 6b6fffe4faeebbf7e103d16a427f6f68774b44d5 /lib/pleroma/web/push/impl.ex | |
parent | 364eecc49f137ae3c7798ad240983591e27b134c (diff) | |
parent | 2430b9bf90d6fde71885f5f0f8be767526be6208 (diff) | |
download | pleroma-c56c0a3d23929f166f4d95e5c6e96bbf0df8a35e.tar.gz |
Merge branch 'develop' into global-status-expiration
Diffstat (limited to 'lib/pleroma/web/push/impl.ex')
-rw-r--r-- | lib/pleroma/web/push/impl.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/push/impl.ex b/lib/pleroma/web/push/impl.ex index f1740a6e0..a9f893f7b 100644 --- a/lib/pleroma/web/push/impl.ex +++ b/lib/pleroma/web/push/impl.ex @@ -55,11 +55,12 @@ defmodule Pleroma.Web.Push.Impl do |> Jason.encode!() |> push_message(build_sub(subscription), gcm_api_key, subscription) end + |> (&{:ok, &1}).() end def perform(_) do Logger.warn("Unknown notification type") - :error + {:error, :unknown_type} end @doc "Push message to web" |