diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-12-19 17:36:25 +0000 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-12-19 17:36:25 +0000 |
commit | df5359aa728211e570c98a7bd30fa3f84629417f (patch) | |
tree | 7abce74780a4cd3f7eb397e193a7ee354dbea109 | |
parent | d1510c98d732de0bf324382fd680566e3ce3e58f (diff) | |
parent | d64d1b1d452e954cba92d686f9a6b8dea2d304a7 (diff) | |
download | pleroma-df5359aa728211e570c98a7bd30fa3f84629417f.tar.gz |
Merge branch 'replies-count' into 'develop'
Fix replies count for remote replies
See merge request pleroma/pleroma!3541
-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 701181a14..d55a4b340 100644 --- a/lib/pleroma/web/activity_pub/side_effects.ex +++ b/lib/pleroma/web/activity_pub/side_effects.ex @@ -200,7 +200,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"] && object.data["type"] != "Answer" do + if in_reply_to = object.data["type"] != "Answer" && object.data["inReplyTo"] do Object.increase_replies_count(in_reply_to) end |