Fix function
authorMark Felder <feld@FreeBSD.org>
Tue, 23 Jul 2019 18:53:05 +0000 (13:53 -0500)
committerMark Felder <feld@FreeBSD.org>
Tue, 23 Jul 2019 18:53:05 +0000 (13:53 -0500)
lib/pleroma/web/common_api/utils.ex

index 6f0f56d96a7c1587196e27c5fafb400918f4ae34..94462c3dd40bd0c6f4aff3b000877a41933fef25 100644 (file)
@@ -439,10 +439,11 @@ defmodule Pleroma.Web.CommonAPI.Utils do
 
   def maybe_notify_mentioned_recipients(recipients, _), do: recipients
 
-  def maybe_notify_subscribers(_, %Activity{
-        data: %{"object" => %Object{data: %{"inReplyTo" => _ap_id}}}
+  # Do not notify subscribers if author is making a reply
+  def maybe_notify_subscribers(recipients, %Activity{
+        object: %Object{data: %{"inReplyTo" => _ap_id}}
       }) do
-    :nothing
+    recipients
   end
 
   def maybe_notify_subscribers(