friendica/mod/randprof.php

20 lines
298 B
PHP
Raw Normal View History

2012-04-11 03:50:31 +00:00
<?php
/**
* @file mod/randprof.php
*/
use Friendica\App;
2017-08-26 06:04:21 +00:00
use Friendica\Core\System;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
function randprof_init(App $a)
{
$x = GContact::getRandomUrl();
if ($x) {
goaway(Profile::zrl($x));
}
goaway(System::baseUrl() . '/profile');
2012-04-11 03:50:31 +00:00
}