friendica/mod/randprof.php

16 lines
227 B
PHP
Raw Normal View History

2012-04-10 23:50:31 -04:00
<?php
use Friendica\App;
2017-08-26 02:04:21 -04:00
use Friendica\Core\System;
use Friendica\Model\GContact;
function randprof_init(App $a) {
$x = GContact::getRandomUrl();
if ($x) {
2012-04-14 08:07:00 -04:00
goaway(zrl($x));
}
goaway(System::baseUrl() . '/profile');
2012-04-10 23:50:31 -04:00
}