]> git.mxchange.org Git - friendica.git/commitdiff
Issue 11504: Abstract has to be plaintext
authorMichael <heluecht@pirati.ca>
Sun, 15 May 2022 21:04:01 +0000 (21:04 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 15 May 2022 21:04:01 +0000 (21:04 +0000)
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);
                        }
                }