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
|
@ -2031,6 +2031,10 @@ class Transmitter
|
||||||
}
|
}
|
||||||
|
|
||||||
$owner = User::getOwnerDataById($uid);
|
$owner = User::getOwnerDataById($uid);
|
||||||
|
if (empty($owner)) {
|
||||||
|
Logger::warning('No user found for actor, aborting', ['uid' => $uid]);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($id)) {
|
if (empty($id)) {
|
||||||
$id = DI::baseUrl() . '/activity/' . System::createGUID();
|
$id = DI::baseUrl() . '/activity/' . System::createGUID();
|
||||||
|
|
Loading…
Reference in a new issue