diff --git a/framework/core/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php b/framework/core/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php index c6e3dd406..0c16e2551 100755 --- a/framework/core/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php +++ b/framework/core/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php @@ -38,8 +38,8 @@ class DiscussionMetadataUpdater $discussion = $event->post->discussion; if ($discussion && $discussion->exists) { - $discussion->comments_count++; - $discussion->setLastPost($event->post); + $discussion->refreshCommentsCount(); + $discussion->refreshLastPost(); $discussion->refreshParticipantsCount(); $discussion->save(); }