]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Link hrefs are the short url, and title is the long url
authorCraig Andrews <candrews@integralblue.com>
Tue, 22 Sep 2009 15:12:55 +0000 (11:12 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 22 Sep 2009 15:12:55 +0000 (11:12 -0400)
lib/util.php

index 018b7cad513c91d2cb82c89f7e5a0f0e4007c450..bd15a56220de0416e179016f9e18af5faaf8dbc4 100644 (file)
@@ -536,7 +536,7 @@ function common_linkify($url) {
         throw new ServerException("Can't linkify url '$url'");
     }
 
-    $attrs = array('href' => $longurl, 'rel' => 'external');
+    $attrs = array('href' => $canon, 'title' => $longurl, 'rel' => 'external');
 
     $is_attachment = false;
     $attachment_id = null;