mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 19:30:20 +00:00
Fix errors in libravatar addon
This commit is contained in:
parent
ee1a917612
commit
d08a280ba6
1 changed files with 2 additions and 2 deletions
|
@ -401,9 +401,8 @@ class Services_Libravatar
|
|||
*/
|
||||
protected function srvGet($domain, $https = false)
|
||||
{
|
||||
|
||||
// Are we going secure? Set up a fallback too.
|
||||
if (isset($https) && $https === true) {
|
||||
if ($https === true) {
|
||||
$subdomain = '_avatars-sec._tcp.';
|
||||
$fallback = 'seccdn.';
|
||||
} else {
|
||||
|
@ -426,6 +425,7 @@ class Services_Libravatar
|
|||
|
||||
$top = $srv[0];
|
||||
$sum = 0;
|
||||
$pri = [];
|
||||
|
||||
// Try to adhere to RFC2782's weighting algorithm, page 3
|
||||
// "arrange all SRV RRs (that have not been ordered yet) in any order,
|
||||
|
|
Loading…
Reference in a new issue