This commit is contained in:
parent
cdba58fb21
commit
c843ecff7f
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ function hook_clickat_render_linklist($data)
|
|||
$patterns = array(
|
||||
'/([^\S]+)@([\w]+).bsky.social/' => '\1<a href="https://bsky.app/profile/\2.bsky.social">@\2.bsky.social</a>',
|
||||
'/([^\S]+)@([\w]+)@([\w_\-\.]+)/' => '\1<a href="https://\3/@\2">@\2</a>',
|
||||
'/([^\S]+)@([\w]+)/' => '\1<a href="https://twitter.com/\2">@\2</a>'
|
||||
'/([^\S]+)@([\w]+)/' => '\1<a href="https://x.com/\2">@\2</a>'
|
||||
);
|
||||
foreach ($data['links'] as &$value) {
|
||||
if (strpos($value['description'], '@') !== false) {
|
||||
|
|
Loading…
Reference in a new issue