[FacebookBridge] Remove videos and views

This commit adds filters to remove embedded videos and view counts from
all posts. This doesn't remove the preview image for videos, which are
embedded separately.
This commit is contained in:
logmanoriginal 2018-11-08 18:36:07 +01:00
parent 104ae2298e
commit 68ee24d6bd

View file

@ -577,6 +577,16 @@ EOD;
$content = $post->find('.userContentWrapper', 0);
// Remove embedded videos (the preview image remains)
foreach($content->find('._5mly') as $video) {
$video->outertext = '';
}
// Remove "Views ..."
foreach($content->find('._2ezg') as $subject) {
$subject->outertext = '';
}
// Remove origin information (i.e. "YOUTUBE.COM") from embedded media
foreach($content->find('._59tj') as $subject) {
$subject->outertext = '';