mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: remove the timecop gem
We should only have one way of mocking time, misuse of timecop was causing build stability issues
This commit is contained in:
@@ -17,7 +17,8 @@ class TopicConverter
|
||||
else
|
||||
Category.where(read_restricted: false)
|
||||
.where.not(id: SiteSetting.uncategorized_category_id)
|
||||
.first.id
|
||||
.order('id asc')
|
||||
.pluck(:id).first
|
||||
end
|
||||
|
||||
@topic.archetype = Archetype.default
|
||||
|
||||
Reference in New Issue
Block a user