Update function calls

update function calls to use profile class
This commit is contained in:
Adam Magness 2018-01-14 21:22:39 -05:00
commit 4fb2547df8
45 changed files with 360 additions and 294 deletions

View file

@ -1,14 +1,18 @@
<?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) {
function randprof_init(App $a)
{
$x = GContact::getRandomUrl();
if ($x) {
goaway(zrl($x));
goaway(Profile::zrl($x));
}
goaway(System::baseUrl() . '/profile');