Merge pull request #9230 from annando/remove-tracking
Remove tracking pixels when importing feeds
This commit is contained in:
commit
2a402ef5ed
1 changed files with 3 additions and 0 deletions
|
@ -494,6 +494,9 @@ class Feed
|
||||||
}
|
}
|
||||||
$item["body"] = HTML::toBBCode($body, $basepath);
|
$item["body"] = HTML::toBBCode($body, $basepath);
|
||||||
|
|
||||||
|
// Remove tracking pixels
|
||||||
|
$item["body"] = preg_replace("/\[img=1x1\]([^\[\]]*)\[\/img\]/Usi", '', $item["body"]);
|
||||||
|
|
||||||
if (($item["body"] == '') && ($item["title"] != '')) {
|
if (($item["body"] == '') && ($item["title"] != '')) {
|
||||||
$item["body"] = $item["title"];
|
$item["body"] = $item["title"];
|
||||||
$item["title"] = '';
|
$item["title"] = '';
|
||||||
|
|
Loading…
Reference in a new issue