projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c97f99c
)
Fix replies count for remote replies
author
marcin mikołajczak
<git@mkljczk.pl>
Tue, 23 Nov 2021 10:31:09 +0000
(11:31 +0100)
committer
marcin 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
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/side_effects.ex
b/lib/pleroma/web/activity_pub/side_effects.ex
index 701181a1419e2f12bce3932fba3d0014832019da..d55a4b340c9a189f193928add8076bbe3c3dda65 100644
(file)
--- 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