]> git.mxchange.org Git - friendica.git/commitdiff
Check for existing post
authorMichael <heluecht@pirati.ca>
Wed, 2 Dec 2020 00:20:07 +0000 (00:20 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 2 Dec 2020 00:20:07 +0000 (00:20 +0000)
src/Protocol/Feed.php

index 821de8c33580556f3d8675531a65ee5f6782a5b5..d3d0d5ef466e5bf26ac17ce5cbd77f9b629a7ba4 100644 (file)
@@ -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 {