friendica_2021-01/mod/randprof.php
Adam Magness 4fb2547df8 Update function calls
update function calls to use profile class
2018-01-14 21:22:39 -05:00

19 lines
298 B
PHP

<?php
/**
* @file mod/randprof.php
*/
use Friendica\App;
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');
}