mirror of
https://github.com/friendica/friendica
synced 2024-11-09 17:02:54 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue