]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Remove include/oembed and mod/oembed
[friendica.git] / mod / randprof.php
index f835780e07146c9c4fac97f7f01bd102a8598e75..40ad09271d67b25811c3c1ffff10ba250b83ca38 100644 (file)
@@ -2,11 +2,10 @@
 
 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));