This commit is contained in:
r888888888
2017-09-15 14:50:23 -07:00
parent e35c7df419
commit 908770c4b0

View File

@@ -583,7 +583,7 @@ class User < ApplicationRecord
end
def next_free_upload_slot
(posts.where("created_at >= ?", 24.hours.ago).first.try(:created_at) || 24.hours.ago) + 24.hours
(posts.where("created_at >= ?", 23.hours.ago).first.try(:created_at) || 23.hours.ago) + 23.hours
end
def tag_query_limit