diff --git a/src/Module/Profile.php b/src/Module/Profile.php index 0d14adcf9..d103c614e 100644 --- a/src/Module/Profile.php +++ b/src/Module/Profile.php @@ -58,6 +58,7 @@ class Profile extends BaseModule if (ActivityPub::isRequest()) { $user = DBA::selectFirst('user', ['uid'], ['nickname' => self::$which]); if (DBA::isResult($user)) { + // The function returns an empty array when the account is removed, expired or blocked $data = ActivityPub\Transmitter::getProfile($user['uid']); if (!empty($data)) { System::jsonExit($data, 'application/activity+json');