more widely used fediverse user URI (sorry Pleroma)
(and no, I won't use webfinger)
This commit is contained in:
parent
298df239e2
commit
4b2ff77f50
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ function hook_clickat_render_linklist($data)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach ($data['links'] as &$value) {
|
foreach ($data['links'] as &$value) {
|
||||||
$value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\.]+)/',' <a href="https://\2/users/\1">@\1</a>',$value['description']);
|
$value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\.]+)/',' <a href="https://\2/@\1">@\1</a>',$value['description']);
|
||||||
$value['description'] = preg_replace('/\ @([\w\d]+)/',' <a href="https://twitter.com/\1">@\1</a>',$value['description']);
|
$value['description'] = preg_replace('/\ @([\w\d]+)/',' <a href="https://twitter.com/\1">@\1</a>',$value['description']);
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
|
|
Loading…
Reference in a new issue