From 1fb485af1ccacd263466cb9957021727847411c3 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 12 Nov 2019 20:22:35 +0000 Subject: [PATCH] Use the contentMap to transmit additional content encodings --- src/Protocol/ActivityPub/Transmitter.php | 3 +++ 1 file changed, 3 insertions(+) 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'])) { -- 2.39.5