diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index 17d775f4b..e2ecf919b 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -58,7 +58,7 @@ class UserPresenter multiplier = (1 - (dcon / 15.0)) max_count = [(user.base_upload_limit * multiplier).ceil, 5].max uploaded_count = Post.for_user(user.id).where("created_at >= ?", 24.hours.ago).count - uploaded_comic_count = Post.for_user(id).tag_match("comic").where("created_at >= ?", 24.hours.ago).count / 3 + uploaded_comic_count = Post.for_user(user.id).tag_match("comic").where("created_at >= ?", 24.hours.ago).count / 3 "(#{user.base_upload_limit} * #{'%0.2f' % multiplier}) - #{uploaded_count - uploaded_comic_count} = #{user.upload_limit}" end