mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:44:23 +02:00
Avoid transmitting a deletion message when we don't have a key
This commit is contained in:
parent
888e2ce2a9
commit
a911baf8e5
2 changed files with 12 additions and 2 deletions
|
@ -1209,6 +1209,16 @@ class Transmitter
|
|||
{
|
||||
$owner = User::getOwnerDataById($uid);
|
||||
|
||||
if (empty($owner)) {
|
||||
Logger::error('No owner data found, the deletion message cannot be processed.', ['user' => $uid]);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (empty($owner['uprvkey'])) {
|
||||
Logger::error('No private key for owner found, the deletion message cannot be processed.', ['user' => $uid]);
|
||||
return false;
|
||||
}
|
||||
|
||||
$data = ['@context' => ActivityPub::CONTEXT,
|
||||
'id' => System::baseUrl() . '/activity/' . System::createGUID(),
|
||||
'type' => 'Delete',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue