Merge pull request #4579 from nonamethanks/fix_4564

Upload limit: don't display progress in tooltip when maxed out
This commit is contained in:
evazion
2020-08-12 09:46:44 -05:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -31,6 +31,10 @@ class UploadLimit
end
end
def maxed?
user.upload_points >= MAXIMUM_POINTS
end
def used_upload_slots
pending_count = user.posts.pending.count
appealed_count = user.post_appeals.pending.count