mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PATCH: in some cases this is being turned to a string workaround for now
This commit is contained in:
parent
5afdbb314b
commit
ea9bc68ee5
@ -579,7 +579,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def treat_as_new_topic_start_date
|
||||
duration = new_topic_duration_minutes || SiteSetting.default_other_new_topic_duration_minutes
|
||||
duration = new_topic_duration_minutes || SiteSetting.default_other_new_topic_duration_minutes.to_i
|
||||
[case duration
|
||||
when User::NewTopicDuration::ALWAYS
|
||||
created_at
|
||||
|
Loading…
Reference in New Issue
Block a user