Fix replies count for remote replies
authormarcin mikołajczak <git@mkljczk.pl>
Tue, 23 Nov 2021 10:31:09 +0000 (11:31 +0100)
committermarcin mikołajczak <git@mkljczk.pl>
Tue, 23 Nov 2021 10:31:09 +0000 (11:31 +0100)
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
lib/pleroma/web/activity_pub/side_effects.ex

index 701181a1419e2f12bce3932fba3d0014832019da..d55a4b340c9a189f193928add8076bbe3c3dda65 100644 (file)
@@ -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