Avoid return type exeption in HTTPSignature->post

- Prefer passing the owner record array instead of just the uid
- +4/-7 calls to User::getOwnerDataById
This commit is contained in:
Hypolite Petovan 2022-12-30 01:45:04 -05:00
parent 3fcc45a720
commit 6e31b8d6a5
7 changed files with 101 additions and 95 deletions

View file

@ -122,7 +122,10 @@ class Introduction
}
if ($protocol == Protocol::ACTIVITYPUB) {
ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $contact['uid']);
$owner = User::getOwnerDataById($contact['uid']);
if ($owner) {
ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $owner);
}
}
}
}