Create new Contact\Redir module class

- Move /redir route to /contact/redir
This commit is contained in:
Hypolite Petovan 2022-11-08 19:33:08 -05:00
parent 386c08aa05
commit 4a626ef101
14 changed files with 241 additions and 164 deletions

View file

@ -345,7 +345,7 @@ class Item
'url' => $item['author-link'],
];
$profile_link = Contact::magicLinkByContact($author, $item['author-link']);
$sparkle = (strpos($profile_link, 'redir/') === 0);
$sparkle = (strpos($profile_link, 'contact/redir/') === 0);
$cid = 0;
$pcid = $item['author-id'];