mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +08: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:
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…
Reference in New Issue
Block a user