Skip to content

Commit

Permalink
Remove #post_count method
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Oct 20, 2024
1 parent 64aeaa7 commit e0f9afc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/models/community_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0f9afc

Please sign in to comment.