]> git.mxchange.org Git - friendica.git/blob - mod/randprof.php
The central item fetch does work now and the API now uses these functions
[friendica.git] / mod / randprof.php
1 <?php
2 /**
3  * @file mod/randprof.php
4  */
5 use Friendica\App;
6 use Friendica\Core\System;
7 use Friendica\Model\Contact;
8 use Friendica\Model\GContact;
9 use Friendica\Model\Profile;
10
11 function randprof_init(App $a)
12 {
13         $x = GContact::getRandomUrl();
14
15         if ($x) {
16                 goaway(Contact::magicLink($x));
17         }
18
19         goaway(System::baseUrl() . '/profile');
20 }