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 committed by GitHub
커밋 2a402ef5ed
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

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