diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-22 20:18:12 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-22 20:18:12 +0400 |
commit | 6c26feed01b2e836e7ebdefe9683ddb03cb57757 (patch) | |
tree | 4b143a6708d405e5fc6ebf69910c9ae18066502b /lib/pleroma/web/push/impl.ex | |
parent | 11433cd38d9761ddf3fdb94f8c39526910b975c1 (diff) | |
parent | 28f8fcf8b034223209ec451d0c2c836124ec93f4 (diff) | |
download | pleroma-6c26feed01b2e836e7ebdefe9683ddb03cb57757.tar.gz |
Merge branch 'develop' into openapi/account
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" |