mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 08:15:55 +00:00
1. per-feed option STRIP_IMAGES should now also affect other media tags
2. video/audio elements were not replaced with text links properly in low bandwidth mode
This commit is contained in:
@@ -1682,9 +1682,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (($owner && get_pref("STRIP_IMAGES", $owner)) ||
|
if ($entry->hasAttribute('src') &&
|
||||||
$force_remove_images || $_SESSION["bw_limit"]) {
|
($owner && get_pref("STRIP_IMAGES", $owner)) || $force_remove_images || $_SESSION["bw_limit"]) {
|
||||||
|
|
||||||
$p = $doc->createElement('p');
|
$p = $doc->createElement('p');
|
||||||
|
|
||||||
@@ -1697,7 +1698,16 @@
|
|||||||
|
|
||||||
$p->appendChild($a);
|
$p->appendChild($a);
|
||||||
|
|
||||||
|
if ($entry->nodeName == 'source') {
|
||||||
|
|
||||||
|
if ($entry->parentNode && $entry->parentNode->parentNode)
|
||||||
|
$entry->parentNode->parentNode->replaceChild($p, $entry->parentNode);
|
||||||
|
|
||||||
|
} else if ($entry->nodeName == 'img') {
|
||||||
|
|
||||||
|
if ($entry->parentNode)
|
||||||
$entry->parentNode->replaceChild($p, $entry);
|
$entry->parentNode->replaceChild($p, $entry);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user