mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
Issue 7223: Don't strip links
This commit is contained in:
parent
16b9d9f199
commit
a11b258fd6
2 changed files with 10 additions and 16 deletions
|
@ -1141,7 +1141,7 @@ class Transmitter
|
|||
{
|
||||
$event = [];
|
||||
$event['name'] = $item['event-summary'];
|
||||
$event['content'] = BBCode::convert($item['event-desc'], false, 7);
|
||||
$event['content'] = BBCode::convert($item['event-desc'], false, 9);
|
||||
$event['startTime'] = DateTimeFormat::utc($item['event-start'] . '+00:00', DateTimeFormat::ATOM);
|
||||
|
||||
if (!$item['event-nofinish']) {
|
||||
|
@ -1231,7 +1231,7 @@ class Transmitter
|
|||
$regexp = "/[@!]\[url\=([^\[\]]*)\].*?\[\/url\]/ism";
|
||||
$body = preg_replace_callback($regexp, ['self', 'mentionCallback'], $body);
|
||||
|
||||
$data['content'] = BBCode::convert($body, false, 7);
|
||||
$data['content'] = BBCode::convert($body, false, 9);
|
||||
}
|
||||
|
||||
$data['source'] = ['content' => $item['body'], 'mediaType' => "text/bbcode"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue