Ensure $owner is set in ActivityPub\Transmitter::sendActivity
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1322704863
This commit is contained in:
parent
8e67d28997
commit
a8eabae12f
1 changed files with 4 additions and 0 deletions
|
@ -2031,6 +2031,10 @@ class Transmitter
|
|||
}
|
||||
|
||||
$owner = User::getOwnerDataById($uid);
|
||||
if (empty($owner)) {
|
||||
Logger::warning('No user found for actor, aborting', ['uid' => $uid]);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (empty($id)) {
|
||||
$id = DI::baseUrl() . '/activity/' . System::createGUID();
|
||||
|
|
Loading…
Reference in a new issue