mirror of
https://github.com/friendica/friendica
synced 2024-11-09 17:02:54 +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)) {
|
||||
$original = $body;
|
||||
$body = BBCode::convert($body, false, BBCode::EXTERNAL);
|
||||
Logger::debug('Body contained no HTML', ['original' => $original, 'converted' => $body]);
|
||||
$html = BBCode::convert($body, false, BBCode::EXTERNAL);
|
||||
if ($body != $html) {
|
||||
Logger::debug('Body contained no HTML', ['original' => $body, 'converted' => $html]);
|
||||
$body = $html;
|
||||
}
|
||||
}
|
||||
|
||||
$item['body'] = HTML::toBBCode($body, $basepath);
|
||||
|
|
Loading…
Reference in a new issue