3 /* identi.ca -> friendica items permanent-url compatibility */
6 use Friendica\Core\System;
8 function notice_init(App $a) {
11 $r = q("SELECT `user`.`nickname` FROM `user` LEFT JOIN `item` ON `item`.`uid` = `user`.`uid` WHERE `item`.`id` = %d", intval($id));
12 if (dbm::is_result($r)) {
13 $nick = $r[0]['nickname'];
14 $url = System::baseUrl() . "/display/$nick/$id";
18 notice(t('Item not found.') . EOL);