]> git.mxchange.org Git - friendica.git/blobdiff - mod/notice.php
Make NOTIFY_* constant values human-readable
[friendica.git] / mod / notice.php
index 133fd22fce242024001ac4015c193998411c9d6f..b40f0ee69cf5bfd9fef800f27c19181b1a5f011f 100644 (file)
@@ -15,8 +15,7 @@ function notice_init(App $a)
        $r = q("SELECT `user`.`nickname` FROM `user` LEFT JOIN `item` ON `item`.`uid` = `user`.`uid` WHERE `item`.`id` = %d", intval($id));
        if (DBA::isResult($r)) {
                $nick = $r[0]['nickname'];
-               $url = System::baseUrl() . "/display/$nick/$id";
-               goaway($url);
+               $a->internalRedirect('display/' . $nick . '/' . $id);
        } else {
                $a->error = 404;
                notice(L10n::t('Item not found.') . EOL);