X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Frandprof.php;h=d0b3c4ef85dc629aaab75d2def14c449d9ff1737;hb=64887387906e9774ef1810c0029353086bcda43b;hp=c5154c12d0b1292ef39fced53c93ef88aadc3e66;hpb=c845415a99ebc348103815a7b2c55b15c75cdd24;p=friendica.git diff --git a/mod/randprof.php b/mod/randprof.php index c5154c12d0..d0b3c4ef85 100644 --- a/mod/randprof.php +++ b/mod/randprof.php @@ -4,6 +4,7 @@ */ use Friendica\App; use Friendica\Core\System; +use Friendica\Model\Contact; use Friendica\Model\GContact; use Friendica\Model\Profile; @@ -12,8 +13,9 @@ function randprof_init(App $a) $x = GContact::getRandomUrl(); if ($x) { - goaway(Profile::zrl($x)); + $link = Contact::magicLink($x); + $a->redirect($link); } - goaway(System::baseUrl() . '/profile'); + $a->internalRedirect('profile'); }