diff options
author | Sarven Capadisli <csarven@status.net> | 2009-11-02 17:21:23 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-11-02 17:21:23 +0000 |
commit | eaae5a4c90249330034e8ee1004e85ae6399fe70 (patch) | |
tree | 36c5e1420b4340773f7b6cca4ceca0c075869938 /plugins/LilUrl | |
parent | 4aa6deb8abb725be7fa6dc30bdfd2e7de1ff24d1 (diff) | |
parent | 5581143bee602dbd5417f532f2b483e58d0a4269 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/LilUrl')
-rw-r--r-- | plugins/LilUrl/LilUrlPlugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/LilUrl/LilUrlPlugin.php b/plugins/LilUrl/LilUrlPlugin.php index 7665b6c1e..852253b02 100644 --- a/plugins/LilUrl/LilUrlPlugin.php +++ b/plugins/LilUrl/LilUrlPlugin.php @@ -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; } } |