mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:21:12 +08:00
FIX: handle quote rendering for external Discourse instance (#16722)
Gracefully handle quotes from an external discourse instance by stripping quote-controls and including username in the title
This commit is contained in:
@ -78,9 +78,8 @@ class CookedPostProcessor
|
||||
q.css('blockquote').text
|
||||
)
|
||||
|
||||
if comparer.modified?
|
||||
q['class'] = ((q['class'] || '') + " quote-modified").strip
|
||||
end
|
||||
q['class'] = ((q['class'] || '') + " quote-post-not-found").strip if comparer.missing?
|
||||
q['class'] = ((q['class'] || '') + " quote-modified").strip if comparer.modified?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user