mirror of
				https://github.com/discourse/discourse.git
				synced 2025-02-25 18:55:32 -06:00 
			
		
		
		
	FIX: Ensure autoclose based on last post is executed by system user.
This commit is contained in:
		@@ -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
 | 
			
		||||
      )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user