s/twitter/x/g
All checks were successful
lint / lint (push) Successful in 15s

This commit is contained in:
n 2024-06-16 14:26:09 +02:00
parent cdba58fb21
commit c843ecff7f
Signed by: n
GPG key ID: 510227DD6C502CE3

View file

@ -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">&commat;\2.bsky.social</a>',
'/([^\S]+)@([\w]+)@([\w_\-\.]+)/' => '\1<a href="https://\3/@\2">&commat;\2</a>',
'/([^\S]+)@([\w]+)/' => '\1<a href="https://twitter.com/\2">&commat;\2</a>'
'/([^\S]+)@([\w]+)/' => '\1<a href="https://x.com/\2">&commat;\2</a>'
);
foreach ($data['links'] as &$value) {
if (strpos($value['description'], '@') !== false) {