ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 34,462
- Points
- 823
Reputation:
Reactions to comments on soft-deleted profile posts remain counted toward their author reaction scores instead of being excluded
Suggested fix:
Diff:
Read more
Continue reading...
Suggested fix:
Diff:
Code:
--- a/src/XF/Reaction/ProfilePostCommentHandler.php
+++ b/src/XF/Reaction/ProfilePostCommentHandler.php
@@ -12,7 +12,12 @@
public function reactionsCounted(Entity $entity)
{
- return ($entity->message_state == 'visible');
+ if (!$entity->ProfilePost)
+ {
+ return false;
+ }
+
+ return...
Read more
Continue reading...