Compare commits
1 commit
f9780488a0
...
cf52ed2036
Author | SHA1 | Date | |
---|---|---|---|
cf52ed2036 |
1 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@ use Shaarli\Render\TemplatePage;
|
|||
function hook_clickat_render_linklist($data)
|
||||
{
|
||||
$patterns = array(
|
||||
'/([^\S]+)@([\w]+).bsky.social/' => ' <a href="https://bsky.app/profile/\2.bsky.social">@\2.bsky.social</a>',
|
||||
'/([^\S]+)@([\w]+).bsky.social/' => ' <a href="https://bsky.app/profile/\2.bsky.social">@\2.bsky.social</a>',
|
||||
'/([^\S]+)@([\w]+)@([\w_\-\.]+)/' => ' <a href="https://\3/@\2">@\2</a>',
|
||||
'/([^\S]+)@([\w]+)/' => ' <a href="https://twitter.com/\2">@\2</a>'
|
||||
'/([^\S]+)@([\w]+)/' => ' <a href="https://twitter.com/\2">@\2</a>'
|
||||
);
|
||||
foreach ($data['links'] as &$value) {
|
||||
if (strpos($value['description'], ' @') !== false) {
|
||||
|
|
Loading…
Add table
Reference in a new issue