]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Replace t.co links with expanded one provided by Twitter. Can still be a shortened...
authorJean Baptiste Favre <statusnet@jbfavre.org>
Thu, 13 Sep 2012 20:40:13 +0000 (22:40 +0200)
committerJean Baptiste Favre <statusnet@jbfavre.org>
Sat, 15 Jun 2013 09:29:09 +0000 (11:29 +0200)
plugins/TwitterBridge/twitterimport.php

index 1c362d6fe8fe96e85b1ff8f05dccc9c8101f9d1d..301e7afd7afa7552b182d797dff5fe34eb20639a 100644 (file)
@@ -632,7 +632,7 @@ class TwitterImport
 
     function makeUrlLink($object, $orig)
     {
-        return "<a href='{$object->url}' class='extlink'>{$orig}</a>";
+        return '<a href="'.htmlspecialchars($object->expanded_url).'" class="extlink">'.htmlspecialchars($object->display_url).'</a>';
     }
 
     function makeHashtagLink($object, $orig)