1
0
Fork 0

Check for existing post

This commit is contained in:
Michael 2020-12-02 00:20:07 +00:00
parent 4fbd0a46b5
commit c302b7c347

View file

@ -614,7 +614,8 @@ class Feed
$notify = PRIORITY_MEDIUM; $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, $postings[] = ['item' => $item, 'notify' => $notify,
'taglist' => $taglist, 'attachments' => $attachments]; 'taglist' => $taglist, 'attachments' => $attachments];
} else { } else {