mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Don't auto-close a topic too soon in PeriodicalUpdates
This commit is contained in:
parent
eeed9abcf0
commit
c0e1ef75f6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue