mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
We only need a link here
This commit is contained in:
parent
60ddef1720
commit
d41ec728e4
3 changed files with 5 additions and 5 deletions
|
@ -259,12 +259,12 @@ class Status extends BaseFactory
|
|||
}
|
||||
}
|
||||
|
||||
$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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1124,7 +1124,7 @@ class Feed
|
|||
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);
|
||||
|
||||
|
|
|
@ -1515,7 +1515,7 @@ class OStatus
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue