FIX: Ensure autoclose based on last post is executed by system user.

This commit is contained in:
Guo Xiang Tan
2020-08-26 12:08:46 +08:00
parent ffc5bb7278
commit 1e8f216e17
2 changed files with 3 additions and 0 deletions

View File

@@ -380,6 +380,7 @@ class Topic < ActiveRecord::Base
self.set_or_create_timer(
TopicTimer.types[:close],
self.category.auto_close_hours,
by_user: Discourse.system_user,
based_on_last_post: based_on_last_post,
duration: duration
)