Only spool mirrored posts

This commit is contained in:
Michael 2020-12-02 05:07:44 +00:00
parent e9fecf1541
commit 775075c5db
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class Delayed
Logger::notice('Post stored', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id']]);
// It should always contain an URI since this is needed to create a delayed post entry
if (!empty($item['uri'])) {
if (!empty($item['uri']) && self::exists($item['uri'], $item['uid'])) {
$result = self::delete($item['uri'], $item['uid']);
Logger::notice('Delayed post entry deleted', ['result' => $result, 'uri' => $item['uri']]);
}