From: Hypolite Petovan Date: Mon, 16 May 2022 00:19:42 +0000 (-0400) Subject: Merge pull request #11518 from annando/issue-11504 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2bde5c4850458258be3bcf7647b1f069a0ed2dec;hp=204e52ea307b182175ae0c64d6eb69c71a104658;p=friendica.git Merge pull request #11518 from annando/issue-11504 Issue 11504: Abstract has to be plaintext --- diff --git a/src/Model/Item.php b/src/Model/Item.php index a1cccb2544..13c26c245a 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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); } }