diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-07-23 13:53:05 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-07-23 13:53:05 -0500 |
commit | 6a79bb12c38bce6287b29c79c1ad3b7f9b967b69 (patch) | |
tree | 7b2cc69f05b0a0309355e109cc1d2fcc304fd867 /lib | |
parent | fd287387a042b86a62d80c41b1dd282316b6609b (diff) | |
download | pleroma-6a79bb12c38bce6287b29c79c1ad3b7f9b967b69.tar.gz |
Fix function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 6f0f56d96..94462c3dd 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -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( |