mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00:00
Fix missing attached links in posts
This commit is contained in:
parent
11527761d7
commit
b761760d65
10 changed files with 80 additions and 0 deletions
|
@ -260,9 +260,11 @@ 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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ class Status extends BaseFactory
|
|||
*/
|
||||
private function createFromArray(array $item, int $uid, bool $include_entities): \Friendica\Object\Api\Twitter\Status
|
||||
{
|
||||
$item = Post\Media::addHTMLAttachmentToItem($item);
|
||||
$author = $this->twitterUser->createFromContactId($item['author-id'], $uid, true);
|
||||
|
||||
if (!empty($item['causer-id']) && ($item['post-reason'] == Item::PR_ANNOUNCEMENT)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue