mirror of
https://github.com/friendica/friendica
synced 2024-11-19 17:03:41 +00:00
Fixes for bad invocations of HTML::toBBCode() (1st parameter is now string)
This commit is contained in:
parent
b200874f17
commit
7814ba4fc4
1 changed files with 3 additions and 2 deletions
|
@ -651,7 +651,7 @@ class Processor
|
|||
|
||||
$content = self::removeImplicitMentionsFromBody($content, $parent);
|
||||
}
|
||||
$item['content-warning'] = HTML::toBBCode($activity['summary']);
|
||||
$item['content-warning'] = (!empty($activity['summary']) ? HTML::toBBCode($activity['summary']) : '');
|
||||
$item['raw-body'] = $item['body'] = $content;
|
||||
}
|
||||
|
||||
|
@ -1225,7 +1225,8 @@ class Processor
|
|||
$attributed_to = JsonLD::fetchElement($activity['as:object'], 'as:attributedTo', '@id');
|
||||
$authorid = Contact::getIdForURL($attributed_to);
|
||||
|
||||
$body = HTML::toBBCode(JsonLD::fetchElement($activity['as:object'], 'as:content', '@value'));
|
||||
$value = JsonLD::fetchElement($activity['as:object'], 'as:content', '@value');
|
||||
$body = (!empty($value) ? HTML::toBBCode($value) : '');
|
||||
|
||||
$messageTags = [];
|
||||
$tags = Receiver::processTags(JsonLD::fetchElementArray($activity['as:object'], 'as:tag') ?? []);
|
||||
|
|
Loading…
Reference in a new issue