Browse Source

Merge pull request #9230 from annando/remove-tracking

Remove tracking pixels when importing feeds
tags/2020.09
Hypolite Petovan 1 month ago
committed by GitHub
parent
commit
2a402ef5ed
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/Protocol/Feed.php

+ 3
- 0
src/Protocol/Feed.php View File

@@ -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…
Cancel
Save