]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Try https first on URL mention lookup
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 22 Apr 2017 10:29:53 +0000 (12:29 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 22 Apr 2017 10:29:53 +0000 (12:29 +0200)
plugins/OStatus/OStatusPlugin.php

index 1750016ace15cb0e71018e2c4e3743c471101c58..1f76b56a20bd08ed62314692f151d09508c6329f 100644 (file)
@@ -349,7 +349,7 @@ class OStatusPlugin extends Plugin
 
         foreach (self::extractUrlMentions($text) as $wmatch) {
             list($target, $pos) = $wmatch;
-            $schemes = array('http', 'https');
+            $schemes = array('https', 'http');
             foreach ($schemes as $scheme) {
                 $url = "$scheme://$target";
                 $this->log(LOG_INFO, "Checking profile address '$url'");