mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:10:12 +00:00
Improved handling of native quotes
This commit is contained in:
parent
f418687a71
commit
3c169b534e
11 changed files with 204 additions and 217 deletions
|
@ -774,7 +774,7 @@ class DFRN
|
|||
$entry->setAttribute("xmlns:statusnet", ActivityNamespace::STATUSNET);
|
||||
}
|
||||
|
||||
$body = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body'] ?? '');
|
||||
$body = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item));
|
||||
|
||||
if ($item['private'] == Item::PRIVATE) {
|
||||
$body = Item::fixPrivatePhotos($body, $owner['uid'], $item, $cid);
|
||||
|
@ -1838,7 +1838,11 @@ class DFRN
|
|||
|
||||
$item['uri-id'] = ItemURI::insert(['uri' => $item['uri'], 'guid' => $item['guid']]);
|
||||
|
||||
$item['body'] = DI::contentItem()->improveSharedDataInBody($item);
|
||||
$quote_uri_id = Item::getQuoteUriId($item['body'], $item['uid']);
|
||||
if (!empty($quote_uri_id)) {
|
||||
$item['quote-uri-id'] = $quote_uri_id;
|
||||
$item['body'] = BBCode::removeSharedData($item['body']);
|
||||
}
|
||||
|
||||
Tag::storeFromBody($item['uri-id'], $item['body']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue