1
1
Fork 0
friendica_2019-12_sharedHos.../mod/randprof.php

20 lines
340 B
PHP

<?php
/**
* @file mod/randprof.php
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
function randprof_init(App $a)
{
$x = GContact::getRandomUrl();
if ($x) {
$a->internalRedirect(Contact::magicLink($x));
}
$a->internalRedirect('profile');
}