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
|
end
|
||||||
|
|
||||||
def treat_as_new_topic_start_date
|
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
|
[case duration
|
||||||
when User::NewTopicDuration::ALWAYS
|
when User::NewTopicDuration::ALWAYS
|
||||||
created_at
|
created_at
|
||||||
|
|
Loading…
Reference in New Issue