From af0d3aca61a0e5d690ca87bf4d60a61da4452d52 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 28 Jun 2021 15:33:25 +1000 Subject: [PATCH] DEV: Remove fallback to TopicTimer close type (#144) We've been past the 2.7 release for a while now and silent_close is in core; time to remove this fallback. --- plugin.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.rb b/plugin.rb index 6d825be..6ce40da 100644 --- a/plugin.rb +++ b/plugin.rb @@ -138,8 +138,7 @@ SQL if (auto_close_hours > 0) && !topic.closed topic_timer = topic.set_or_create_timer( - # Fallback to TopicTimer.types[:close] can be removed after discourse stable version > 2.7 - TopicTimer.types[:silent_close] || TopicTimer.types[:close], + TopicTimer.types[:silent_close], nil, based_on_last_post: true, duration_minutes: auto_close_hours * 60