]> git.mxchange.org Git - friendica.git/blobdiff - mod/notice.php
Cleaning confirm
[friendica.git] / mod / notice.php
index 133fd22fce242024001ac4015c193998411c9d6f..1a584000c72d86eee8560391b8c6ad910033bdf9 100644 (file)
@@ -6,7 +6,6 @@
 
 use Friendica\App;
 use Friendica\Core\L10n;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
 
 function notice_init(App $a)
@@ -15,8 +14,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);