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:
parent
f8393d10b7
commit
108aa5c467
@ -632,7 +632,7 @@ class TwitterImport
|
|||||||
|
|
||||||
function makeUrlLink($object, $orig)
|
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)
|
function makeHashtagLink($object, $orig)
|
||||||
|
Loading…
Reference in New Issue
Block a user