]> git.mxchange.org Git - friendica.git/commitdiff
Fixed warning
authorMichael Vogel <icarus@dabo.de>
Sat, 14 Dec 2019 05:42:40 +0000 (06:42 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 14 Dec 2019 05:42:40 +0000 (06:42 +0100)
src/Worker/Delivery.php

index da0c8f2adb4da018364f11cfff755c212a0ec5e2..c364ce5e51e66c9a30a2f6ba785c9455d4d89046 100644 (file)
@@ -252,7 +252,7 @@ class Delivery extends BaseObject
        private static function deliverDFRN($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup)
        {
                // Transmit Diaspora reshares via Diaspora if the Friendica contact support Diaspora
-               if (Diaspora::isReshare($target_item['body']) && !empty(Diaspora::personByHandle(contact['addr'], false))) {
+               if (Diaspora::isReshare($target_item['body']) && !empty(Diaspora::personByHandle($contact['addr'], false))) {
                        Logger::info('Reshare will be transmitted via Diaspora', ['url' => $contact['url'], 'guid' => ($target_item['guid'] ?? '') ?: $target_item['id']]);
                        self::deliverDiaspora($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup);
                        return;