]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Remove include/oembed and mod/oembed
[friendica.git] / mod / randprof.php
index 79057b4955d00fb72f847d3b5684b5320c0881fd..40ad09271d67b25811c3c1ffff10ba250b83ca38 100644 (file)
@@ -2,12 +2,10 @@
 
 use Friendica\App;
 use Friendica\Core\System;
-use Friendica\Model\GlobalContact;
+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));