Delayed relay distribution

This commit is contained in:
Michael Vogel 2020-09-22 22:14:37 +02:00
parent c3725d4b3e
commit 380828d78c
2 changed files with 19 additions and 4 deletions

View file

@ -67,7 +67,7 @@ class Transmitter
* @param array $inboxes
* @return array inboxes with added relay servers
*/
public static function addRelayServerInboxes(array $inboxes)
public static function addRelayServerInboxes(array $inboxes = [])
{
$contacts = DBA::select('apcontact', ['inbox'],
["`type` = ? AND `url` IN (SELECT `url` FROM `contact` WHERE `uid` = ? AND `rel` IN (?, ?))",