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:
Isaac Janzen
2022-05-12 10:07:43 -05:00
committed by GitHub
parent 991b62b6f1
commit 20740f196c
5 changed files with 57 additions and 11 deletions

View File

@ -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