Issue 11504: Abstract has to be plaintext

This commit is contained in:
Michael 2022-05-15 21:04:01 +00:00
parent 204e52ea30
commit 440b6d7956

View 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);
}
}