From c302b7c347c43b3f7d1e997bf3447b7d48d7f9b1 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 2 Dec 2020 00:20:07 +0000 Subject: [PATCH] Check for existing post --- src/Protocol/Feed.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 821de8c33..d3d0d5ef4 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 {