diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index f54ab05fa..d330743a9 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -40,7 +40,7 @@ class UserPresenter def upload_limit deleted_count = Post.for_user(user.id).deleted.count pending_count = Post.for_user(user.id).pending.count - approved_count = Post.where("is_flagged = false and is_pending = false and uploader_id = ?", user.id).count + approved_count = Post.where("is_flagged = false and is_pending = false and is_deleted = false and uploader_id = ?", user.id).count if user.base_upload_limit limit = user.base_upload_limit - pending_count