friendica/mod/randprof.php

20 lines
293 B
PHP
Raw Normal View History

2012-04-11 03:50:31 +00:00
<?php
/**
* @file mod/randprof.php
*/
use Friendica\App;
2018-06-02 08:05:06 +00:00
use Friendica\Model\Contact;
use Friendica\Model\GContact;
function randprof_init(App $a)
{
$x = GContact::getRandomUrl();
if ($x) {
$link = Contact::magicLink($x);
$a->redirect($link);
}
$a->internalRedirect('profile');
2012-04-11 03:50:31 +00:00
}