X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Frandprof.php;h=10bff588ef3a2d6f925d9875e9d0f1dd31eb430c;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=18bcb236f8a98504e94acbe860b41c2d2ee82e08;hpb=b02cdc8a7f84a4931e80027de42a80daa58581e1;p=friendica.git diff --git a/mod/randprof.php b/mod/randprof.php index 18bcb236f8..10bff588ef 100644 --- a/mod/randprof.php +++ b/mod/randprof.php @@ -3,18 +3,17 @@ * @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) { - goaway(Contact::magicLink($x)); + $link = Contact::magicLink($x); + $a->redirect($link); } - goaway(System::baseUrl() . '/profile'); + $a->internalRedirect('profile'); }