ec02af593d
- Add GlobalContact::getRandomUrl - Rename Contact::getIdForURL - Rename Diaspora::sendUnshare - Remove unused parameter $self in Contact::terminateFriendship
17 lines
276 B
PHP
17 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');
|
|
}
|