more widely used fediverse user URI (sorry Pleroma)

(and no, I won't use webfinger)
This commit is contained in:
n 2022-03-23 21:27:42 +01:00
parent 298df239e2
commit 4b2ff77f50
Signed by: n
GPG Key ID: 510227DD6C502CE3
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ function hook_clickat_render_linklist($data)
{
foreach ($data['links'] as &$value) {
$value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\.]+)/',' <a href="https://\2/users/\1">&commat;\1</a>',$value['description']);
$value['description'] = preg_replace('/\ @([\w\d]+)@([\w\d_\.]+)/',' <a href="https://\2/@\1">&commat;\1</a>',$value['description']);
$value['description'] = preg_replace('/\ @([\w\d]+)/',' <a href="https://twitter.com/\1">&commat;\1</a>',$value['description']);
}
return $data;