Merge branch 'replies-count' into 'develop'

Fix replies count for remote replies

See merge request pleroma/pleroma!3541
This commit is contained in:
Alex Gleason 2021-12-19 17:36:25 +00:00
commit df5359aa72

View 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