1
1
Fork 0

Check for post existence

This commit is contained in:
Michael 2022-10-14 22:02:25 +00:00
parent 88aceeb27f
commit 3e868416c7

View file

@ -1119,7 +1119,9 @@ class Item
$item['raw-body'] = Post\Media::insertFromBody($item['uri-id'], $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['raw-body'] = BBCode::replaceSharedData($item['raw-body']);
}