mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
FIX: Do not error in excerpts when aside tag has no class attribute
This commit is contained in:
parent
304dcb3eb8
commit
79f5d24571
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class ExcerptParser < Nokogiri::XML::SAX::Document
|
|||
@in_quote = true
|
||||
end
|
||||
|
||||
if attributes['class'].include?('quote')
|
||||
if attributes['class']&.include?('quote')
|
||||
if @keep_quotes || (@keep_onebox_body && attributes['data-topic'].present?)
|
||||
@in_quote = false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue