Remove tracking pixels when importing feeds
This commit is contained in:
parent
74e5a73678
commit
fcddf24f88
|
@ -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"] = '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user