mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Don't auto-close a topic too soon in PeriodicalUpdates
This commit is contained in:
@@ -629,7 +629,7 @@ class Topic < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.auto_close
|
||||
Topic.where("NOT closed AND auto_close_at < ? AND auto_close_user_id IS NOT NULL", 5.minutes.from_now).each do |t|
|
||||
Topic.where("NOT closed AND auto_close_at < ? AND auto_close_user_id IS NOT NULL", 1.minute.ago).each do |t|
|
||||
t.auto_close
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user