diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-07-23 13:14:26 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-07-23 13:14:26 -0500 |
commit | fd287387a042b86a62d80c41b1dd282316b6609b (patch) | |
tree | 58d0df849161ad7bdde39f16249ec85594da77e3 /lib | |
parent | a042a7ac6d65dca3e19e6c4ddd65d2010e94aeba (diff) | |
download | pleroma-fd287387a042b86a62d80c41b1dd282316b6609b.tar.gz |
Do not notify subscribers for messages from users which are replies to others
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index fcc000969..6f0f56d96 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -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 |