Bugfix: Avoid "Class not found" error

This commit is contained in:
Michael 2018-03-08 19:58:35 +00:00
parent 3086666c38
commit c438e47827
5 changed files with 10 additions and 5 deletions

View file

@ -11,6 +11,7 @@ namespace Friendica\Protocol;
use Friendica\App;
use Friendica\Content\OEmbed;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
@ -2453,7 +2454,7 @@ class DFRN
$purifier = new HTMLPurifier($config);
$item['body'] = $purifier->purify($item['body']);
$item['body'] = @Friendica\Content\Text\HTML::toBBCode($item['body']);
$item['body'] = @HTML::toBBCode($item['body']);
}
/// @todo We should check for a repeated post and if we know the repeated author.

View file

@ -328,7 +328,7 @@ class Email
$body .= "Content-Transfer-Encoding: 8bit\n";
$body .= "Content-Type: text/plain; charset=utf-8; format=flowed\n\n";
$body .= Friendica\Content\Text\HTML::toPlaintext($html)."\n";
$body .= HTML::toPlaintext($html)."\n";
$body .= "--=_".$part."\n";
$body .= "Content-Transfer-Encoding: 8bit\n";

View file

@ -10,6 +10,8 @@ use Friendica\Database\DBM;
use Friendica\Core\System;
use Friendica\Model\Item;
use Friendica\Util\Network;
use Friendica\Content\Text\HTML;
use dba;
use DOMDocument;
use DOMXPath;
@ -362,7 +364,7 @@ class Feed {
if (self::titleIsBody($item["title"], $body)) {
$item["title"] = "";
}
$item["body"] = Friendica\Content\Text\HTML::toBBCode($body, $basepath);
$item["body"] = HTML::toBBCode($body, $basepath);
if (($item["body"] == '') && ($item["title"] != '')) {
$item["body"] = $item["title"];