From 440b6d7956cbf8e8002e2569dc397bf8201b7ce2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 15 May 2022 21:04:01 +0000 Subject: [PATCH] Issue 11504: Abstract has to be plaintext --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5