Merge pull request #3658 from annando/static-methods
[friendica.git/.git] / mod / randprof.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\System;
5
6 function randprof_init(App $a) {
7         require_once('include/Contact.php');
8
9         $x = random_profile();
10
11         if ($x) {
12                 goaway(zrl($x));
13         }
14
15         goaway(System::baseUrl() . '/profile');
16 }