returning, not needed
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 5 Mar 2020 15:28:04 +0000 (18:28 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 5 Mar 2020 15:28:04 +0000 (18:28 +0300)
lib/pleroma/web/push/impl.ex

index 233e55f21f73580a81a589a9f4d3ce97c1858097..afa510f086184f29ce55489e747e47f5ba0642d9 100644 (file)
@@ -32,7 +32,7 @@ defmodule Pleroma.Web.Push.Impl do
     type = Activity.mastodon_notification_type(notif.activity)
     gcm_api_key = Application.get_env(:web_push_encryption, :gcm_api_key)
     avatar_url = User.avatar_url(actor)
-    object = Object.normalize(activity) || activity
+    object = Object.normalize(activity)
     user = User.get_cached_by_id(user_id)
     direct_conversation_id = Activity.direct_conversation_id(activity, user)