]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Remove unused upubkey and uprvkey from queries
[friendica.git] / mod / randprof.php
index 6713a81d9e4a2efe2f013feb6ceeb2c092a891fe..38d05c53e4308814b1a85ea28f468afe4dd93646 100644 (file)
@@ -1,10 +1,15 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Model\GlobalContact;
 
-function randprof_init(&$a) {
-       require_once('include/Contact.php');
-       $x = random_profile();
-       if($x)
+function randprof_init(App $a) {
+       $x = GlobalContact::getRandomUrl();
+
+       if ($x) {
                goaway(zrl($x));
-       goaway($a->get_baseurl() . '/profile');
+       }
+
+       goaway(System::baseUrl() . '/profile');
 }