3 namespace Friendica\Module;
5 use Friendica\BaseModule;
7 use Friendica\Model\Contact;
8 use Friendica\Model\GContact;
11 * Redirects to a random Friendica profile this node knows about
13 class RandomProfile extends BaseModule
15 public static function content(array $parameters = [])
19 $contactUrl = GContact::getRandomUrl();
22 $link = Contact::magicLink($contactUrl);
26 DI::baseUrl()->redirect('profile');