]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "If a shortened URL begins with http://, don't include it in the shortened...
authorCraig Andrews <candrews@integralblue.com>
Thu, 10 Sep 2009 16:13:43 +0000 (12:13 -0400)
committerCraig Andrews <candrews@integralblue.com>
Thu, 10 Sep 2009 16:13:43 +0000 (12:13 -0400)
This reverts commit e2848eb8621dd645fa68cb1641c0af1df5530408.

Downstream consumers of our notices (such as Friendfeed, Facebook, etc) don't have sophisticated URL detection, so a notice that reads: "check out ur1.ca/1" won't be linked. So the http:// prefix is
mandatory.

lib/util.php

index 3e95d2bea34afe90345d0ba42d2ec47bb4f821c7..256acf1993bbf8bb84d7ca077959b720171040e2 100644 (file)
@@ -1414,9 +1414,6 @@ function common_shorten_url($long_url)
 
     curl_close($curlh);
 
-    if(substr($short_url,0,7)=='http://'){
-        $short_url = substr($short_url,7);
-    }
     return $short_url;
 }