mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Strip video oneboxes from excerpts
Follows up on 49843f327e and removes onebox markup for videos too in the excerpt, this was previously being counted as part of the excerpt length.
This commit is contained in:
@@ -376,7 +376,7 @@ module PrettyText
|
||||
|
||||
def self.strip_oneboxed_media(doc)
|
||||
doc.css("audio").remove
|
||||
doc.css("video").remove
|
||||
doc.css(".video-onebox,video").remove
|
||||
end
|
||||
|
||||
def self.convert_vimeo_iframes(doc)
|
||||
|
||||
Reference in New Issue
Block a user