- wrong way around (!empty($foo)) is proper
- also needed to be checked on $acitivty['content']
This commit is contained in:
Roland Häder 2022-06-16 13:38:40 +02:00
parent b1e4c0931a
commit b200874f17
No known key found for this signature in database
GPG Key ID: C82EDE5DDFA0BA77

View File

@ -616,8 +616,8 @@ class Processor
$content = $activity['content'];
} else {
// By default assume "text/html"
$item['title'] = (empty($activity['name']) ? HTML::toBBCode($activity['name']) : '');
$content = HTML::toBBCode($activity['content']);
$item['title'] = (!empty($activity['name']) ? HTML::toBBCode($activity['name']) : '');
$content = (!empty($activity['content']) ? HTML::toBBCode($activity['content']) : '');
}
$item['title'] = trim(BBCode::toPlaintext($item['title']));