TickTackk
Well-known member
- Affected version
- XF 2.0.x
In file:
Find:
Replace with:
Because the likes are already rebuilt in
src\XF\Entity\ProfilePost.php
Find:
PHP:
protected function profilePostMadeVisible()
{
/** @var \XF\Repository\LikedContent $likeRepo */
$likeRepo = $this->repository('XF:LikedContent');
$likeRepo->recalculateLikeIsCounted('profile_post_comment', $this->comment_ids);
}
Replace with:
PHP:
protected function profilePostMadeVisible()
{
}
Because the likes are already rebuilt in
XF:Likeable
behavior.