Remove tracking pixels when importing feeds

Esse commit está contido em:
Michael 2020-09-18 15:25:48 +00:00
commit fcddf24f88
1 arquivos alterados com 3 adições e 0 exclusões

Ver arquivo

@ -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"] = '';