Issue 11504: Abstract has to be plaintext
This commit is contained in:
parent
204e52ea30
commit
440b6d7956
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue