mirror of
https://github.com/discourse/discourse.git
synced 2025-06-17 07:22:32 +08:00
FIX: Do not error in excerpts when aside tag has no class attribute
This commit is contained in:
@ -101,7 +101,7 @@ class ExcerptParser < Nokogiri::XML::SAX::Document
|
|||||||
@in_quote = true
|
@in_quote = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if attributes['class'].include?('quote')
|
if attributes['class']&.include?('quote')
|
||||||
if @keep_quotes || (@keep_onebox_body && attributes['data-topic'].present?)
|
if @keep_quotes || (@keep_onebox_body && attributes['data-topic'].present?)
|
||||||
@in_quote = false
|
@in_quote = false
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user