1
0
Fork 0
mirror of https://github.com/friendica/friendica synced 2025-02-24 23:18:15 +00:00
friendica-github/mod/randprof.php
2018-06-02 08:05:06 +00:00

20 lines
333 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) {
goaway(Contact::magicLink($x));
}
goaway(System::baseUrl() . '/profile');
}