From: Michael Date: Fri, 5 Oct 2018 20:10:10 +0000 (+0000) Subject: Avoid to do the follow stuff for the public user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d7968bdf3e65738bfec5ec8df89c32e58540a51;p=friendica.git Avoid to do the follow stuff for the public user --- diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 14b5e93bac..5c644176f0 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -382,7 +382,7 @@ class Receiver Contact::updateAvatar($photo, $uid, $cid); // Send a new follow request to be sure that the connection still exists - if (DBA::exists('contact', ['id' => $cid, 'rel' => [Contact::SHARING, Contact::FRIEND]])) { + if (($uid != 0) && DBA::exists('contact', ['id' => $cid, 'rel' => [Contact::SHARING, Contact::FRIEND]])) { ActivityPub\Transmitter::sendActivity('Follow', $profile['url'], $uid); logger('Send a new follow request to ' . $profile['url'] . ' for user ' . $uid, LOGGER_DEBUG); }