]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Remove include/oembed and mod/oembed
[friendica.git] / mod / randprof.php
index 8d9083ada484019506231cdeaf7c5db6c789a5ca..40ad09271d67b25811c3c1ffff10ba250b83ca38 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Model\GContact;
 
 function randprof_init(App $a) {
-       require_once('include/Contact.php');
-
-       $x = random_profile();
+       $x = GContact::getRandomUrl();
 
        if ($x) {
                goaway(zrl($x));
        }
 
-       goaway(App::get_baseurl() . '/profile');
+       goaway(System::baseUrl() . '/profile');
 }