mirror of
https://github.com/friendica/friendica
synced 2025-01-03 18:02:18 +00:00
Merge pull request #14152 from annando/feed-no-html
Log the feed fix only if it has an effect.
This commit is contained in:
commit
9ae4a17977
1 changed files with 5 additions and 3 deletions
|
@ -549,9 +549,11 @@ class Feed
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!HTML::isHTML($body)) {
|
if (!HTML::isHTML($body)) {
|
||||||
$original = $body;
|
$html = BBCode::convert($body, false, BBCode::EXTERNAL);
|
||||||
$body = BBCode::convert($body, false, BBCode::EXTERNAL);
|
if ($body != $html) {
|
||||||
Logger::debug('Body contained no HTML', ['original' => $original, 'converted' => $body]);
|
Logger::debug('Body contained no HTML', ['original' => $body, 'converted' => $html]);
|
||||||
|
$body = $html;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$item['body'] = HTML::toBBCode($body, $basepath);
|
$item['body'] = HTML::toBBCode($body, $basepath);
|
||||||
|
|
Loading…
Reference in a new issue