diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-11-02 05:43:06 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-11-02 05:56:17 +0100 |
commit | 4caad4e9101c34debfa90d2e89850d4125a471b3 (patch) | |
tree | 1357db85272dd89fa33e3e3509161c1c59d32757 /lib | |
parent | 073ad7e6d91884f3c972f903d936f029c7a884e6 (diff) | |
download | pleroma-4caad4e9101c34debfa90d2e89850d4125a471b3.tar.gz pleroma-4caad4e9101c34debfa90d2e89850d4125a471b3.zip |
side_effects: Don’t increase_replies_count when it’s an Answer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/side_effects.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/side_effects.ex b/lib/pleroma/web/activity_pub/side_effects.ex index 0fff5faf2..9b1171d07 100644 --- a/lib/pleroma/web/activity_pub/side_effects.ex +++ b/lib/pleroma/web/activity_pub/side_effects.ex @@ -187,7 +187,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do {:ok, notifications} = Notification.create_notifications(activity, do_send: false) {:ok, _user} = ActivityPub.increase_note_count_if_public(user, object) - if in_reply_to = object.data["inReplyTo"] do + if in_reply_to = object.data["inReplyTo"] && object.data["type"] != "Answer" do Object.increase_replies_count(in_reply_to) end |