]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RandomProfile.php
Several speed improvements (magiclink, caching, indexes)
[friendica.git] / src / Module / RandomProfile.php
index 65ce5659592e7bcce2e72704d6482f724b36321a..163fec60fbb6da1f8b06d5be5ea45d58f3e99b38 100644 (file)
@@ -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);
                }