]> git.mxchange.org Git - friendica.git/commitdiff
Missing "use"
authorMichael <heluecht@pirati.ca>
Sun, 8 Dec 2019 21:40:06 +0000 (21:40 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 8 Dec 2019 21:40:06 +0000 (21:40 +0000)
src/Worker/Delivery.php

index e901e45f24ee3b4762520504642d7b68e8246f8e..0d01d82848714023e76a3bb24cc153d37831907e 100644 (file)
@@ -16,6 +16,7 @@ use Friendica\Protocol\DFRN;
 use Friendica\Protocol\Diaspora;
 use Friendica\Protocol\Email;
 use Friendica\Protocol\Activity;
+use Friendica\Protocol\ActivityPub;
 use Friendica\Util\Strings;
 use Friendica\Util\Network;
 use Friendica\Core\Worker;
@@ -254,6 +255,7 @@ class Delivery extends BaseObject
                // Skip transmitting the announce via DFRN when it had already been done via AP
                if (ActivityPub\Transmitter::isAnnounce($target_item) && !empty(Model\APContact::getByURL($contact['url'], false))) {
                        Logger::info('Announce had already been transmitted', ['url' => $contact['url'], 'guid' => ($target_item['guid'] ?? '') ?: $target_item['id']]);
+                       Model\ItemDeliveryData::incrementQueueDone($target_item['id']);
                        return;
                }