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
1 changed files with 1 additions and 1 deletions

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