diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2019-07-24 16:37:52 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2019-07-24 16:37:52 +0300 |
commit | d2da3d30f3349946500423bab53e0c1221ab7b9b (patch) | |
tree | 338d2e3b0412a9be89a462173e367495c5e9ad40 /lib/pleroma/web/common_api/utils.ex | |
parent | afc7708dbe00a70be616f00f01b22b0d01b9b61b (diff) | |
parent | 53fad36b57b61b28db595e445cd01fd6044dab6b (diff) | |
download | pleroma-d2da3d30f3349946500423bab53e0c1221ab7b9b.tar.gz |
Merge branch 'develop' into feature/digest-email
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 |