}
}
- $item['body'] = $this->contentItem->addSharedPost($item);
- $item['body'] = Post\Media::addHTMLAttachmentToBody($uriId, $item['body']);
-
if (!is_null($item['raw-body'])) {
$item['raw-body'] = $this->contentItem->addSharedPost($item, $item['raw-body']);
$item['raw-body'] = Post\Media::addHTMLLinkToBody($uriId, $item['raw-body']);
+ } else {
+ $item['body'] = $this->contentItem->addSharedPost($item);
+ $item['body'] = Post\Media::addHTMLLinkToBody($uriId, $item['body']);
}
}
XML::addElement($doc, $entry, 'title', html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
$body = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item));
- $body = Post\Media::addHTMLAttachmentToBody($item['uri-id'], $body);
+ $body = Post\Media::addHTMLLinkToBody($item['uri-id'], $body);
$body = BBCode::convertForUriId($item['uri-id'], $body, BBCode::ACTIVITYPUB);
XML::addElement($doc, $entry, 'title', html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
$body = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item));
- $body = Post\Media::addHTMLAttachmentToBody($item['uri-id'], $body);
+ $body = Post\Media::addHTMLLinkToBody($item['uri-id'], $body);
if (!empty($item['title'])) {
$body = '[b]' . $item['title'] . "[/b]\n\n" . $body;