diff --git a/framework/core/src/User/User.php b/framework/core/src/User/User.php index fb999ad95..8439cd65a 100644 --- a/framework/core/src/User/User.php +++ b/framework/core/src/User/User.php @@ -743,7 +743,7 @@ class User extends AbstractModel * * @return $this */ - public function refreshCommentsCount() + public function refreshCommentCount() { $this->comment_count = $this->posts()->count(); @@ -755,7 +755,7 @@ class User extends AbstractModel * * @return $this */ - public function refreshDiscussionsCount() + public function refreshDiscussionCount() { $this->discussion_count = $this->discussions()->count(); diff --git a/framework/core/src/User/UserMetadataUpdater.php b/framework/core/src/User/UserMetadataUpdater.php index 16367ee1b..713c3fa27 100644 --- a/framework/core/src/User/UserMetadataUpdater.php +++ b/framework/core/src/User/UserMetadataUpdater.php @@ -69,7 +69,7 @@ class UserMetadataUpdater $user = $post->user; if ($user && $user->exists) { - $user->refreshCommentsCount()->save(); + $user->refreshCommentCount()->save(); } } @@ -78,7 +78,7 @@ class UserMetadataUpdater $user = $discussion->user; if ($user && $user->exists) { - $user->refreshDiscussionsCount()->save(); + $user->refreshDiscussionCount()->save(); } } }