From e0f9afc1f0d68bd9a01267e740e690815f2dbaa6 Mon Sep 17 00:00:00 2001 From: ArtOfCode- Date: Sun, 20 Oct 2024 23:21:31 +0100 Subject: [PATCH] Remove #post_count method --- app/models/community_user.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/community_user.rb b/app/models/community_user.rb index 43e8fa1e3..a62926dcc 100644 --- a/app/models/community_user.rb +++ b/app/models/community_user.rb @@ -24,11 +24,6 @@ def suspended? false end - # All undeleted posts on this community by this user. - def post_count - Post.unscoped.where(community_id: community_id).where(user: user).undeleted.count - end - # Calculation functions for privilege scores # These are quite expensive, so we'll cache them for a while def post_score