From: Roland Häder Date: Thu, 16 Jun 2022 15:03:25 +0000 (+0200) Subject: Ops, syntax errors get unnoticed with a simple editor. :-( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e8fee5644b5e746f8c09e604caac3d678f376989;p=friendica.git Ops, syntax errors get unnoticed with a simple editor. :-( --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 311806f8c0..1c448cd575 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'] = HTML::toBBCode($activity['name'] ??: ''); - $content = HTML::toBBCode($activity['content'] ?? : ''); + $item['title'] = HTML::toBBCode($activity['name'] ?? ''); + $content = HTML::toBBCode($activity['content'] ?? ''); } $item['title'] = trim(BBCode::toPlaintext($item['title']));