]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/LilUrl/LilUrlPlugin.php
Rebuilt HTTPClient class as an extension of PEAR HTTP_Request2 package, adding redire...
[quix0rs-gnu-social.git] / plugins / LilUrl / LilUrlPlugin.php
index 7665b6c1e4f5b1330148b8ec41a9cd9eed5ab460..852253b02326c91ea2e228b5c40c12a36498836a 100644 (file)
@@ -58,7 +58,10 @@ class LilUrl extends ShortUrlApi
         $y = @simplexml_load_string($response);
         if (!isset($y->body)) return $url;
         $x = $y->body->p[0]->a->attributes();
-        if (isset($x['href'])) return $x['href'];
+        if (isset($x['href'])) {
+            common_log(LOG_INFO, __CLASS__ . ": shortened $url to $x[href]");
+            return $x['href'];
+        }
         return $url;
     }
 }