mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:50:11 +00:00
Fix: Mentions in the HTML part of the "contentMap" now are links
This commit is contained in:
parent
a8ace6522c
commit
85b3c880ef
2 changed files with 5 additions and 2 deletions
|
@ -1270,7 +1270,10 @@ class Transmitter
|
|||
$data['content'] = BBCode::convert($body, false, 9);
|
||||
}
|
||||
|
||||
$data['contentMap']['text/html'] = BBCode::convert($item['body'], false);
|
||||
$regexp = "/[@!]\[url\=([^\[\]]*)\].*?\[\/url\]/ism";
|
||||
$richbody = preg_replace_callback($regexp, ['self', 'mentionCallback'], $item['body']);
|
||||
|
||||
$data['contentMap']['text/html'] = BBCode::convert($richbody, false);
|
||||
$data['contentMap']['text/markdown'] = BBCode::toMarkdown($item["body"]);
|
||||
|
||||
$data['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue