mirror of
https://github.com/friendica/friendica
synced 2025-04-22 13:10:11 +00:00
Several speed improvements (magiclink, caching, indexes)
This commit is contained in:
parent
251465f67a
commit
312c01a517
21 changed files with 119 additions and 86 deletions
|
@ -34,10 +34,10 @@ class RandomProfile extends BaseModule
|
|||
{
|
||||
$a = DI::app();
|
||||
|
||||
$contactUrl = Contact::getRandomUrl();
|
||||
$contact = Contact::getRandomContact();
|
||||
|
||||
if ($contactUrl) {
|
||||
$link = Contact::magicLink($contactUrl);
|
||||
if (!empty($contact)) {
|
||||
$link = Contact::magicLinkByContact($contact);
|
||||
$a->redirect($link);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue