]> git.mxchange.org Git - friendica.git/commitdiff
Don't switch Friendica contacts to AP
authorMichael Vogel <icarus@dabo.de>
Fri, 3 May 2019 05:10:02 +0000 (07:10 +0200)
committerMichael Vogel <icarus@dabo.de>
Fri, 3 May 2019 05:10:02 +0000 (07:10 +0200)
src/Protocol/ActivityPub/Processor.php

index 2ebcbc0b8c927daecb8cfc37eae75408e3c14c32..58920487012b13a570140770b434b17a052aa9f0 100644 (file)
@@ -653,7 +653,7 @@ class Processor
        private static function switchContact($cid)
        {
                $contact = DBA::selectFirst('contact', ['network'], ['id' => $cid, 'network' => Protocol::NATIVE_SUPPORT]);
-               if (!DBA::isResult($contact) || ($contact['network'] == Protocol::ACTIVITYPUB)) {
+               if (!DBA::isResult($contact) || in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN])) {
                        return;
                }