From: Michael Date: Mon, 18 Mar 2019 22:38:10 +0000 (+0000) Subject: The "summary" field seems to be interpreted as plain text only X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2788995ab0c44b9f4e680e2adbab2b175f0293a6;p=friendica.git The "summary" field seems to be interpreted as plain text only --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 8f9687a804..ce23e6db20 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -1021,7 +1021,7 @@ class Transmitter return $data; } - $data['summary'] = BBCode::convert(BBCode::getAbstract($item['body'], Protocol::ACTIVITYPUB), false, 7); + $data['summary'] = BBCode::toPlaintext(BBCode::getAbstract($item['body'], Protocol::ACTIVITYPUB)); if ($item['uri'] != $item['thr-parent']) { $data['inReplyTo'] = $item['thr-parent']; @@ -1056,7 +1056,7 @@ class Transmitter if ($type == 'Note') { $body = self::removePictures($body); } elseif (($type == 'Article') && empty($data['summary'])) { - $data['summary'] = BBCode::convert(Plaintext::shorten(self::removePictures($body), 1000), false, 7); + $data['summary'] = BBCode::toPlaintext(Plaintext::shorten(self::removePictures($body), 1000)); } if ($type == 'Event') {