mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 08:55:42 +08:00
Make rubocop happy
This commit is contained in:
parent
687b05750b
commit
c0a2d9e671
@ -452,10 +452,10 @@ task "import:create_vbulletin_permalinks" => :environment do
|
|||||||
SiteSetting.permalink_normalizations = '/showthread.php\?t=(\d+).*/showthread.php?t=\1'
|
SiteSetting.permalink_normalizations = '/showthread.php\?t=(\d+).*/showthread.php?t=\1'
|
||||||
|
|
||||||
Topic.listable_topics.find_each do |topic|
|
Topic.listable_topics.find_each do |topic|
|
||||||
tcf = topic.custom_fields
|
tcf = topic.custom_fields
|
||||||
if tcf && tcf["import_id"]
|
if tcf && tcf["import_id"]
|
||||||
Permalink.create(url: "showthread.php?t=#{tcf["import_id"]}", topic_id: topic.id) rescue nil
|
Permalink.create(url: "showthread.php?t=#{tcf["import_id"]}", topic_id: topic.id) rescue nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Category.find_each do |cat|
|
Category.find_each do |cat|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user