s/twitter/x/g #9
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ function hook_clickat_render_linklist($data)
|
||||||
$patterns = array(
|
$patterns = array(
|
||||||
'/([^\S]+)@([\w]+).bsky.social/' => '\1<a href="https://bsky.app/profile/\2.bsky.social">@\2.bsky.social</a>',
|
'/([^\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]+)@([\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) {
|
foreach ($data['links'] as &$value) {
|
||||||
if (strpos($value['description'], '@') !== false) {
|
if (strpos($value['description'], '@') !== false) {
|
||||||
|
|
Loading…
Reference in a new issue