From: Michael Date: Wed, 2 Dec 2020 00:20:07 +0000 (+0000) Subject: Check for existing post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c302b7c347c43b3f7d1e997bf3447b7d48d7f9b1;p=friendica.git Check for existing post --- diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 821de8c335..d3d0d5ef46 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -614,7 +614,8 @@ class Feed $notify = PRIORITY_MEDIUM; } - if (!Post\Delayed::exists($item["uri"])) { + $condition = ['uid' => $item['uid'], 'uri' => $item['uri'], 'network' => Protocol::FEED]; + if (!Item::exists($condition) && !Post\Delayed::exists($item["uri"])) { $postings[] = ['item' => $item, 'notify' => $notify, 'taglist' => $taglist, 'attachments' => $attachments]; } else {