]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #11518 from annando/issue-11504
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 16 May 2022 00:19:42 +0000 (20:19 -0400)
committerGitHub <noreply@github.com>
Mon, 16 May 2022 00:19:42 +0000 (20:19 -0400)
Issue 11504: Abstract has to be plaintext

src/Model/Item.php

index a1cccb25444a32e871a61862831f0b0ca8b0e8a1..13c26c245ad061bdd12dfc3687dfde710f1d65ce 100644 (file)
@@ -1079,7 +1079,7 @@ class Item
                if (in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN])) {
                        $content_warning = BBCode::getAbstract($item['body'], Protocol::ACTIVITYPUB);
                        if (!empty($content_warning) && empty($item['content-warning'])) {
-                               $item['content-warning'] = $content_warning;
+                               $item['content-warning'] = BBCode::toPlaintext($content_warning);
                        }
                }