]> git.mxchange.org Git - friendica.git/commitdiff
Deliver with the new function when delivering to a "uid=0" contact
authorMichael <heluecht@pirati.ca>
Mon, 30 Apr 2018 13:07:40 +0000 (13:07 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 30 Apr 2018 13:07:40 +0000 (13:07 +0000)
src/Worker/Delivery.php

index 423691e2a5ea022b3911a0833608d94a8bbef988..05627e2b12366d726f00efc98076764d790aaa90 100644 (file)
@@ -270,7 +270,7 @@ class Delivery extends BaseObject
 
                // We don't have a relationship with contacts on a public post.
                // Se we transmit with the new method and via Diaspora as a fallback
-               if ($items[0]['uid'] == 0) {
+               if (($items[0]['uid'] == 0) || ($contact['uid'] == 0)) {
                        // Transmit in public if it's a relay post
                        $public_dfrn = ($contact['contact-type'] == ACCOUNT_TYPE_RELAY);