Only spool mirrored posts
This commit is contained in:
parent
e9fecf1541
commit
775075c5db
|
@ -92,7 +92,7 @@ class Delayed
|
||||||
Logger::notice('Post stored', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id']]);
|
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
|
// 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']);
|
$result = self::delete($item['uri'], $item['uid']);
|
||||||
Logger::notice('Delayed post entry deleted', ['result' => $result, 'uri' => $item['uri']]);
|
Logger::notice('Delayed post entry deleted', ['result' => $result, 'uri' => $item['uri']]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue