Ensure $owner is set in ActivityPub\Transmitter::sendContactReject

- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1289535020
This commit is contained in:
Hypolite Petovan 2022-11-23 11:05:36 -05:00
parent 7c6d54c989
commit 14ebc4a821

View file

@ -2171,6 +2171,11 @@ class Transmitter
}
$owner = User::getOwnerDataById($uid);
if (empty($owner)) {
Logger::notice('No user found for actor', ['uid' => $uid]);
return false;
}
$data = [
'@context' => ActivityPub::CONTEXT,
'id' => DI::baseUrl() . '/activity/' . System::createGUID(),