mirror of
https://github.com/friendica/friendica
synced 2024-12-23 20:00:16 +00:00
4fb2547df8
update function calls to use profile class
19 lines
298 B
PHP
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');
|
|
}
|