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.
This commit is contained in:
Martin Brennan 2021-06-28 15:33:25 +10:00 committed by GitHub
parent eac6539c46
commit af0d3aca61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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