A platform for community discussion. Free, open, simple.
FIX: Strip video oneboxes from excerpts
Penar Musaraj708190802c3a
diff --git a/lib/pretty_text.rb b/lib/pretty_text.rbindex e5c7fff2106..de9c1c8cdbb 100644--- a/lib/pretty_text.rb+++ b/lib/pretty_text.rb@@ -376,7 +376,7 @@ module PrettyTextdef self.strip_oneboxed_media(doc)doc.css("audio").remove- doc.css("video").remove+ doc.css(".video-onebox,video").removeenddef self.convert_vimeo_iframes(doc)