friendica_2021-01/mod/randprof.php

16 lines
237 B
PHP
Raw Normal View History

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