summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-11-02 12:08:20 +0000
committerlain <lain@soykaf.club>2020-11-02 12:08:20 +0000
commit24ce3249736c96686c00a10abe47659579535259 (patch)
tree9da0943abf651c74032e199e1625cf326744ba61 /lib
parent9fbe9ef77436d6a9a176d264ee830300a2a37889 (diff)
parent4caad4e9101c34debfa90d2e89850d4125a471b3 (diff)
downloadpleroma-24ce3249736c96686c00a10abe47659579535259.tar.gz
pleroma-24ce3249736c96686c00a10abe47659579535259.zip
Merge branch 'bugfix/poll_replies_count' into 'develop'
side_effects: Don’t increase_replies_count when it’s an Answer Closes #2274 See merge request pleroma/pleroma!3114
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/side_effects.ex2
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 d552e91fc..bbff35c36 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