]> git.mxchange.org Git - friendica.git/commitdiff
Ops:
authorRoland Häder <roland@mxchange.org>
Thu, 16 Jun 2022 11:38:40 +0000 (13:38 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 16 Jun 2022 14:54:50 +0000 (16:54 +0200)
- wrong way around (!empty($foo)) is proper
- also needed to be checked on $acitivty['content']

src/Protocol/ActivityPub/Processor.php

index f723d287b9d232b07679767feb841a2063cfc697..31a37a36f1adbdd25c718ec2b072f73ed46225e6 100644 (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']));