From: Michael Date: Tue, 12 Nov 2019 20:22:35 +0000 (+0000) Subject: Use the contentMap to transmit additional content encodings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1fb485af1ccacd263466cb9957021727847411c3;p=friendica.git Use the contentMap to transmit additional content encodings --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index a7be1e9c52..82ee97c9ed 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -1270,6 +1270,9 @@ class Transmitter $data['content'] = BBCode::convert($body, false, 9); } + $data['contentMap']['text/html'] = BBCode::convert($item['body'], false); + $data['contentMap']['text/markdown'] = BBCode::toMarkdown($item["body"]); + $data['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"]; if (!empty($item['signed_text']) && ($item['uri'] != $item['thr-parent'])) {