Try https first on URL mention lookup

This commit is contained in:
Mikael Nordfeldth 2017-04-22 12:29:53 +02:00
parent 95f991cff3
commit 956cfaf844

View 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'");