Merge pull request #9261 from annando/relay-distribution

Delayed relay distribution
This commit is contained in:
Hypolite Petovan
2020-09-23 11:43:52 -04:00
committed by GitHub
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 (?, ?))",