Do not notify subscribers for messages from users which are replies to others

This commit is contained in:
Mark Felder 2019-07-23 13:14:26 -05:00
commit fd287387a0
2 changed files with 24 additions and 0 deletions

View file

@ -439,6 +439,12 @@ 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
:nothing
end
def maybe_notify_subscribers(
recipients,
%Activity{data: %{"actor" => actor, "type" => type}} = activity