diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2021-11-23 11:31:09 +0100 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2021-11-23 11:31:09 +0100 |
commit | d64d1b1d452e954cba92d686f9a6b8dea2d304a7 (patch) | |
tree | 953f2c65af77b3306cba403cfdbb9db212c106ba | |
parent | c97f99ccf2a51c7f1078d7a20006deae2df3d12c (diff) | |
download | pleroma-d64d1b1d452e954cba92d686f9a6b8dea2d304a7.tar.gz |
Fix replies count for remote replies
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
-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 |