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.

This commit is contained in:
Jean Baptiste Favre 2012-09-13 22:40:13 +02:00
parent f8393d10b7
commit 108aa5c467
1 changed files with 1 additions and 1 deletions

View 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)