Merge pull request #11518 from annando/issue-11504
Issue 11504: Abstract has to be plaintext
This commit is contained in:
commit
2bde5c4850
1 changed files with 1 additions and 1 deletions
|
@ -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