]> git.mxchange.org Git - friendica.git/blob - mod/randprof.php
Catch HTTPExceptions in App::runFrontend()
[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                 $link = Contact::magicLink($x);
17                 $a->redirect($link);
18         }
19
20         $a->internalRedirect('profile');
21 }