Avoid to do the follow stuff for the public user
This commit is contained in:
@@ -382,7 +382,7 @@ class Receiver
|
|||||||
Contact::updateAvatar($photo, $uid, $cid);
|
Contact::updateAvatar($photo, $uid, $cid);
|
||||||
|
|
||||||
// Send a new follow request to be sure that the connection still exists
|
// 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);
|
ActivityPub\Transmitter::sendActivity('Follow', $profile['url'], $uid);
|
||||||
logger('Send a new follow request to ' . $profile['url'] . ' for user ' . $uid, LOGGER_DEBUG);
|
logger('Send a new follow request to ' . $profile['url'] . ' for user ' . $uid, LOGGER_DEBUG);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user