diff options
author | rinpatch <rinpatch@sdf.org> | 2019-07-25 18:43:30 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-07-25 18:43:30 +0300 |
commit | 41e0304757c5a0d9778f7e685c9ddf481f0e15cb (patch) | |
tree | dc60d86d41153d9764cb32a9adae5fa24894c1fa /lib/pleroma/web/common_api/utils.ex | |
parent | 196cad46f35a63c18d58cd5d982bc4e1f9b0d7c3 (diff) | |
parent | d1e891062e3c6c34ca7940a476917beea2822ca2 (diff) | |
download | pleroma-41e0304757c5a0d9778f7e685c9ddf481f0e15cb.tar.gz |
Merge branch 'develop' into feature/hide-follows-remote
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index fcc000969..94462c3dd 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -439,6 +439,13 @@ defmodule Pleroma.Web.CommonAPI.Utils do def maybe_notify_mentioned_recipients(recipients, _), do: recipients + # Do not notify subscribers if author is making a reply + def maybe_notify_subscribers(recipients, %Activity{ + object: %Object{data: %{"inReplyTo" => _ap_id}} + }) do + recipients + end + def maybe_notify_subscribers( recipients, %Activity{data: %{"actor" => actor, "type" => type}} = activity |