forgotten $
[friendica.git/.git] / mod / randprof.php
index c5154c1..18bcb23 100644 (file)
@@ -4,6 +4,7 @@
  */
 use Friendica\App;
 use Friendica\Core\System;
+use Friendica\Model\Contact;
 use Friendica\Model\GContact;
 use Friendica\Model\Profile;
 
@@ -12,7 +13,7 @@ function randprof_init(App $a)
        $x = GContact::getRandomUrl();
 
        if ($x) {
-               goaway(Profile::zrl($x));
+               goaway(Contact::magicLink($x));
        }
 
        goaway(System::baseUrl() . '/profile');