Use a better query to fetch the relay actor
This commit is contained in:
parent
e68ff3b3bb
commit
8969e83134
1 changed files with 2 additions and 1 deletions
|
@ -179,7 +179,8 @@ class Delivery
|
|||
*/
|
||||
private static function fetchActorForRelayInbox(string $inbox): string
|
||||
{
|
||||
$apcontact = DBA::selectFirst('apcontact', ['url'], ['sharedinbox' => $inbox, 'type' => 'Application']);
|
||||
$apcontact = DBA::selectFirst('apcontact', ['url'], ["`sharedinbox` = ? AND `type` = ? AND `url` IN (SELECT `url` FROM `contact` WHERE `uid` = ? AND `rel` = ?)",
|
||||
$inbox, 'Application', 0, Contact::FRIEND]);
|
||||
return $apcontact['url'] ?? '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue