4 * GNU Social -> friendica items permanent-url compatibility
8 use Friendica\Core\L10n;
9 use Friendica\Database\DBA;
11 function notice_init(App $a)
14 $r = q("SELECT `user`.`nickname` FROM `user` LEFT JOIN `item` ON `item`.`uid` = `user`.`uid` WHERE `item`.`id` = %d", intval($id));
15 if (DBA::isResult($r)) {
16 $nick = $r[0]['nickname'];
17 $a->internalRedirect('display/' . $nick . '/' . $id);
20 notice(L10n::t('Item not found.') . EOL);