Merge pull request #9230 from annando/remove-tracking

Remove tracking pixels when importing feeds
This commit is contained in:
Hypolite Petovan 2020-09-18 11:50:55 -04:00 odevzdal GitHub
revize 2a402ef5ed
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 3 přidání a 0 odebrání

Zobrazit soubor

@ -494,6 +494,9 @@ class Feed
}
$item["body"] = HTML::toBBCode($body, $basepath);
// Remove tracking pixels
$item["body"] = preg_replace("/\[img=1x1\]([^\[\]]*)\[\/img\]/Usi", '', $item["body"]);
if (($item["body"] == '') && ($item["title"] != '')) {
$item["body"] = $item["title"];
$item["title"] = '';