Issue 14294: Fix event parsing
This commit is contained in:
parent
4dd64b1a5d
commit
99dfb7d59e
4 changed files with 3301 additions and 3302 deletions
|
@ -3349,22 +3349,22 @@ class Diaspora
|
|||
}
|
||||
}
|
||||
|
||||
// convert to markdown
|
||||
$body = html_entity_decode(BBCode::toMarkdown($body));
|
||||
|
||||
// Adding the title
|
||||
if (strlen($title)) {
|
||||
$body = '### ' . html_entity_decode($title) . "\n\n" . $body;
|
||||
}
|
||||
|
||||
$attachments = Post\Media::getByURIId($item['uri-id'], [Post\Media::DOCUMENT, Post\Media::TORRENT]);
|
||||
if (!empty($attachments)) {
|
||||
$body .= "\n[hr]\n";
|
||||
foreach ($attachments as $attachment) {
|
||||
$body .= "[" . $attachment['description'] . "](" . $attachment['url'] . ")\n";
|
||||
$body .= "[url=" . $attachment['url'] . "]" . $attachment['description'] . "[/url]\n";
|
||||
}
|
||||
}
|
||||
|
||||
// convert to markdown
|
||||
$body = BBCode::toMarkdown($body);
|
||||
|
||||
// Adding the title
|
||||
if (strlen($title)) {
|
||||
$body = '### ' . html_entity_decode($title) . "\n\n" . $body;
|
||||
}
|
||||
|
||||
$location = [];
|
||||
|
||||
if ($item['location'] != '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue