1
0
Fork 0

Merge pull request #7205 from annando/fix-protocol

Fix "Undefined index: protocol"
This commit is contained in:
Hypolite Petovan 2019-05-29 00:36:36 -04:00 committed by GitHub
commit 0462af5a86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ class Diaspora
*/ */
private static function getRelayContact($server_url) private static function getRelayContact($server_url)
{ {
$fields = ['batch', 'id', 'name', 'network', 'archive', 'blocked']; $fields = ['batch', 'id', 'name', 'network', 'protocol', 'archive', 'blocked'];
// Fetch the relay contact // Fetch the relay contact
$condition = ['uid' => 0, 'nurl' => Strings::normaliseLink($server_url), $condition = ['uid' => 0, 'nurl' => Strings::normaliseLink($server_url),