<?php
-
+/**
+ * @file mod/randprof.php
+ */
use Friendica\App;
use Friendica\Core\System;
-use Friendica\Model\GlobalContact;
+use Friendica\Model\Contact;
+use Friendica\Model\GContact;
+use Friendica\Model\Profile;
-function randprof_init(App $a) {
- $x = GlobalContact::getRandomUrl();
+function randprof_init(App $a)
+{
+ $x = GContact::getRandomUrl();
if ($x) {
- goaway(zrl($x));
+ goaway(Contact::magicLink($x));
}
goaway(System::baseUrl() . '/profile');