]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Remove unreliable ANY_VALUE from message list query
[friendica.git] / mod / randprof.php
index 055b3dcbe8650b9d86d725085045dea48e78b2ae..d0b3c4ef85dc629aaab75d2def14c449d9ff1737 100644 (file)
@@ -14,12 +14,7 @@ function randprof_init(App $a)
 
        if ($x) {
                $link = Contact::magicLink($x);
-               // @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
-               if (filter_var($link, FILTER_VALIDATE_URL)) {
-                       System::externalRedirect($link);
-               } else {
-                       $a->internalRedirect($link);
-               }
+               $a->redirect($link);
        }
 
        $a->internalRedirect('profile');