1
1
Fork 0

Merge pull request #11518 from annando/issue-11504

Issue 11504: Abstract has to be plaintext
This commit is contained in:
Hypolite Petovan 2022-05-15 20:19:42 -04:00 committed by GitHub
commit 2bde5c4850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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