]> git.mxchange.org Git - friendica.git/blob - mod/randprof.php
Docs: add a note on adding `use` on theme.php
[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\GContact;
8 use Friendica\Model\Profile;
9
10 function randprof_init(App $a)
11 {
12         $x = GContact::getRandomUrl();
13
14         if ($x) {
15                 goaway(Profile::zrl($x));
16         }
17
18         goaway(System::baseUrl() . '/profile');
19 }