friendica/mod/randprof.php
Hypolite Petovan ec02af593d Change called method names
- Add GlobalContact::getRandomUrl
- Rename Contact::getIdForURL
- Rename Diaspora::sendUnshare
- Remove unused parameter $self in Contact::terminateFriendship
2017-11-19 17:03:39 -05:00

18 lines
276 B
PHP

<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Model\GlobalContact;
function randprof_init(App $a) {
require_once('include/Contact.php');
$x = GlobalContact::getRandomUrl();
if ($x) {
goaway(zrl($x));
}
goaway(System::baseUrl() . '/profile');
}