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

21 lines
333 B
PHP
Raw Normal View History

2012-04-11 05:50:31 +02:00
<?php
/**
* @file mod/randprof.php
*/
use Friendica\App;
2017-08-26 08:04:21 +02:00
use Friendica\Core\System;
2018-06-02 10:05:06 +02:00
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
function randprof_init(App $a)
{
$x = GContact::getRandomUrl();
if ($x) {
2018-06-02 10:05:06 +02:00
goaway(Contact::magicLink($x));
}
goaway(System::baseUrl() . '/profile');
2012-04-11 05:50:31 +02:00
}