From: Jean Baptiste Favre Date: Thu, 13 Sep 2012 20:40:13 +0000 (+0200) Subject: Replace t.co links with expanded one provided by Twitter. Can still be a shortened... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=108aa5c467f54442561ece3db3c4fc9d37d4c95b;p=quix0rs-gnu-social.git Replace t.co links with expanded one provided by Twitter. Can still be a shortened one & will be done only for HTML view, but still a start. Backport of merge_requests/205. --- diff --git a/plugins/TwitterBridge/twitterimport.php b/plugins/TwitterBridge/twitterimport.php index 1c362d6fe8..301e7afd7a 100644 --- a/plugins/TwitterBridge/twitterimport.php +++ b/plugins/TwitterBridge/twitterimport.php @@ -632,7 +632,7 @@ class TwitterImport function makeUrlLink($object, $orig) { - return "{$orig}"; + return ''.htmlspecialchars($object->display_url).''; } function makeHashtagLink($object, $orig)