mirror of
https://github.com/discourse/discourse.git
synced 2025-04-27 12:04:30 +08:00
FIX: Avoid bang methods in Disqus importer.
This commit is contained in:
parent
578f606a1a
commit
0866c160ef
@ -151,8 +151,7 @@ class DisqusSAX < Nokogiri::XML::SAX::Document
|
|||||||
@threads.delete(id)
|
@threads.delete(id)
|
||||||
else
|
else
|
||||||
# Normalize titles
|
# Normalize titles
|
||||||
t[:title].gsub!(@strip, '') if @strip.present?
|
t[:title] = [:title].gsub(@strip, '').strip if @strip.present?
|
||||||
t[:title].strip!
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user