]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
Merge pull request #5949 from rthees/develop
[friendica.git] / mod / profile.php
index 8d5ae8758533cc10a743e2859bb0a2ee45630ad6..6f0ab9e077af456aa9b7eec2fa4af27923450536 100644 (file)
@@ -34,7 +34,7 @@ function profile_init(App $a)
        } else {
                $r = q("SELECT `nickname` FROM `user` WHERE `blocked` = 0 AND `account_expired` = 0 AND `account_removed` = 0 AND `verified` = 1 ORDER BY RAND() LIMIT 1");
                if (DBA::isResult($r)) {
-                       goaway(System::baseUrl() . '/profile/' . $r[0]['nickname']);
+                       $a->internalRedirect('profile/' . $r[0]['nickname']);
                } else {
                        logger('profile error: mod_profile ' . $a->query_string, LOGGER_DEBUG);
                        notice(L10n::t('Requested profile is not available.') . EOL);