]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
BBCode - fixed syntax error
[friendica.git] / mod / randprof.php
index 4da149afdc8c177dc11d765659dc6b0a02cdf2a0..10bff588ef3a2d6f925d9875e9d0f1dd31eb430c 100644 (file)
@@ -3,17 +3,16 @@
  * @file mod/randprof.php
  */
 use Friendica\App;
-use Friendica\Core\System;
 use Friendica\Model\Contact;
 use Friendica\Model\GContact;
-use Friendica\Model\Profile;
 
 function randprof_init(App $a)
 {
        $x = GContact::getRandomUrl();
 
        if ($x) {
-               $a->internalRedirect(Contact::magicLink($x));
+               $link = Contact::magicLink($x);
+               $a->redirect($link);
        }
 
        $a->internalRedirect('profile');