sforkowany z mirror/friendica
Ops:
- wrong way around (!empty($foo)) is proper - also needed to be checked on $acitivty['content']2022.09-rc
rodzic
b1e4c0931a
commit
b200874f17
|
@ -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']));
|
||||
|
|
Ładowanie…
Reference in New Issue