Merge pull request #9230 from annando/remove-tracking

Remove tracking pixels when importing feeds
このコミットが含まれているのは:
Hypolite Petovan 2020-09-18 11:50:55 -04:00 committed by GitHub
コミット 2a402ef5ed
この署名に対応する既知のキーがデータベースに存在しません
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"] = '';