Ensure $owner is set in ActivityPub\Transmitter::sendContactReject
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1289535020
This commit is contained in:
parent
7c6d54c989
commit
14ebc4a821
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user