kopia lustrzana https://github.com/friendica/friendica
Use the contentMap to transmit additional content encodings
rodzic
35ece9924d
commit
1fb485af1c
|
@ -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'])) {
|
||||
|
|
Ładowanie…
Reference in New Issue