diff options
author | Ian Denhardt <ian@zenhack.net> | 2010-08-13 18:01:33 -0400 |
---|---|---|
committer | Ian Denhardt <ian@zenhack.net> | 2010-08-13 18:01:33 -0400 |
commit | 70c3532996b4239880607e705ffb4e9f9aaa692a (patch) | |
tree | 84ec2edd51de37e7c5922e6f1e573ec8ed55cb42 /lib | |
parent | b1c5cb9db99993fcea7c060bffa6d5d50f22a41f (diff) | |
parent | 341b935acc0111bc2bfa69be5687c4e6f255d8ce (diff) |
Merge branch '1.0.x' of git://gitorious.org/statusnet/mainline
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 8eff4e568..f187926b5 100644 --- a/lib/util.php +++ b/lib/util.php @@ -845,7 +845,10 @@ function common_linkify($url) { } elseif (is_string($longurl_data)) { $longurl = $longurl_data; } else { - throw new ServerException("Can't linkify url '$url'"); + // Unable to reach the server to verify contents, etc + // Just pass the link on through for now. + common_log(LOG_ERR, "Can't linkify url '$url'"); + $longurl = $url; } } $attrs = array('href' => $canon, 'title' => $longurl, 'rel' => 'external'); |