2012-04-10 23:50:31 -04:00
|
|
|
<?php
|
2018-01-14 21:22:39 -05:00
|
|
|
/**
|
|
|
|
* @file mod/randprof.php
|
|
|
|
*/
|
2017-04-30 00:07:00 -04:00
|
|
|
use Friendica\App;
|
2017-08-26 02:04:21 -04:00
|
|
|
use Friendica\Core\System;
|
2018-06-02 04:05:06 -04:00
|
|
|
use Friendica\Model\Contact;
|
2017-12-07 09:09:28 -05:00
|
|
|
use Friendica\Model\GContact;
|
2018-01-14 21:22:39 -05:00
|
|
|
use Friendica\Model\Profile;
|
2016-02-07 09:11:34 -05:00
|
|
|
|
2018-01-14 21:22:39 -05:00
|
|
|
function randprof_init(App $a)
|
|
|
|
{
|
2017-12-07 09:09:28 -05:00
|
|
|
$x = GContact::getRandomUrl();
|
2016-12-20 05:38:16 -05:00
|
|
|
|
|
|
|
if ($x) {
|
2018-06-02 04:05:06 -04:00
|
|
|
goaway(Contact::magicLink($x));
|
2016-12-20 05:38:16 -05:00
|
|
|
}
|
|
|
|
|
2017-08-26 03:32:10 -04:00
|
|
|
goaway(System::baseUrl() . '/profile');
|
2012-04-10 23:50:31 -04:00
|
|
|
}
|