Compare commits
1 commit
63240c42df
...
13235cc0fb
Author | SHA1 | Date | |
---|---|---|---|
13235cc0fb |
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ function hook_clickat_render_linklist($data)
|
|||
'/([^\S]+)@([\w]+)@([\w_\-\.]+)/' => '\1<a href="https://\3/@\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) {
|
||||
foreach ($patterns as $nic => $link) {
|
||||
$value['description'] = preg_replace($nic, $link, $value['description']);
|
||||
|
|
Loading…
Add table
Reference in a new issue