mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:08:56 +08:00
Merge pull request #3915 from tgxworld/dont_use_bang_methods
FIX: Avoid bang methods in Disqus importer.
This commit is contained in:
commit
4b036bb7bf
|
@ -151,8 +151,7 @@ class DisqusSAX < Nokogiri::XML::SAX::Document
|
|||
@threads.delete(id)
|
||||
else
|
||||
# Normalize titles
|
||||
t[:title].gsub!(@strip, '') if @strip.present?
|
||||
t[:title].strip!
|
||||
t[:title] = [:title].gsub(@strip, '').strip if @strip.present?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user