]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/APDelivery.php
Prevent permissionset foreign key constraint
[friendica.git] / src / Worker / APDelivery.php
index 2bf869b4dec1fe0bc3048cd9817243239eea6ee0..9f0af133e67aae6563d5bf2a827e4a0a784b8264 100644 (file)
@@ -48,7 +48,7 @@ class APDelivery
                if (ActivityPub\Transmitter::archivedInbox($inbox)) {
                        Logger::info('Inbox is archived', ['cmd' => $cmd, 'inbox' => $inbox, 'id' => $item_id, 'uid' => $uid]);
                        if (in_array($cmd, [Delivery::POST])) {
-                               $item = Item::selectFirst(['uri-id'], ['id' => $item_id]);
+                               $item = Post::selectFirst(['uri-id'], ['id' => $item_id]);
                                Post\DeliveryData::incrementQueueFailed($item['uri-id'] ?? 0);
                        }
                        return;
@@ -81,7 +81,7 @@ class APDelivery
                }
 
                // This should never fail and is temporariy (until the move to the "post" structure)
-               $item = Item::selectFirst(['uri-id'], ['id' => $item_id]);
+               $item = Post::selectFirst(['uri-id'], ['id' => $item_id]);
                $uriid = $item['uri-id'] ?? 0;
                $gsid = null;