From: marcin mikołajczak Date: Tue, 23 Nov 2021 10:31:09 +0000 (+0100) Subject: Fix replies count for remote replies X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d64d1b1d452e954cba92d686f9a6b8dea2d304a7;p=akkoma Fix replies count for remote replies Signed-off-by: marcin mikołajczak --- 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