From: Roland Häder Date: Thu, 16 Jun 2022 11:38:40 +0000 (+0200) Subject: Ops: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b200874f17686cc2b1c8eb4acb760572b79aff0e;p=friendica.git Ops: - wrong way around (!empty($foo)) is proper - also needed to be checked on $acitivty['content'] --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index f723d287b9..31a37a36f1 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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']));