mirror of
https://github.com/friendica/friendica
synced 2024-11-18 19:03:40 +00:00
Check for post existence
This commit is contained in:
parent
88aceeb27f
commit
3e868416c7
1 changed files with 3 additions and 1 deletions
|
@ -1119,7 +1119,9 @@ class Item
|
||||||
$item['raw-body'] = Post\Media::insertFromBody($item['uri-id'], $item['raw-body']);
|
$item['raw-body'] = Post\Media::insertFromBody($item['uri-id'], $item['raw-body']);
|
||||||
$item['raw-body'] = self::setHashtags($item['raw-body']);
|
$item['raw-body'] = self::setHashtags($item['raw-body']);
|
||||||
|
|
||||||
if ($quote_id = self::getQuoteUriId($item['body'])) {
|
$quote_id = self::getQuoteUriId($item['body']);
|
||||||
|
|
||||||
|
if (!empty($quote_id) && Post::exists(['uri-id' => $quote_id, 'network' => Protocol::FEDERATED])) {
|
||||||
$item['quote-uri-id'] = $quote_id;
|
$item['quote-uri-id'] = $quote_id;
|
||||||
$item['raw-body'] = BBCode::replaceSharedData($item['raw-body']);
|
$item['raw-body'] = BBCode::replaceSharedData($item['raw-body']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue