mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Strip video oneboxes from excerpts
Follows up on 49843f327e88538a487d37b5d3c288da15b99908 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:
parent
cd3fab9ccc
commit
708190802c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user