mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:50:11 +00:00
Merge remote-tracking branch 'upstream/2019.09-rc' into performance
This commit is contained in:
commit
33006d8455
9 changed files with 3716 additions and 3554 deletions
|
@ -55,7 +55,7 @@ class Diaspora
|
|||
*
|
||||
* @param array $contact of the relay contact
|
||||
*/
|
||||
public static function markRelayForArchival($contact)
|
||||
public static function markRelayForArchival(array $contact)
|
||||
{
|
||||
if (!empty($contact['contact-type']) && ($contact['contact-type'] == Contact::TYPE_RELAY)) {
|
||||
// This is already the relay contact, we don't need to fetch it
|
||||
|
@ -175,7 +175,7 @@ class Diaspora
|
|||
* @return array with the contact
|
||||
* @throws \Exception
|
||||
*/
|
||||
private static function getRelayContact($server_url, $fields = ['batch', 'id', 'name', 'network', 'protocol', 'archive', 'blocked'])
|
||||
private static function getRelayContact(string $server_url, array $fields = ['batch', 'id', 'name', 'network', 'protocol', 'archive', 'blocked'])
|
||||
{
|
||||
// Fetch the relay contact
|
||||
$condition = ['uid' => 0, 'nurl' => Strings::normaliseLink($server_url),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue