2 /* identi.ca -> friendica items permanent-url compatibility */
4 function notice_init(App $a) {
6 $r = q("SELECT user.nickname FROM user LEFT JOIN item ON item.uid=user.uid WHERE item.id=%d",
9 if (dbm::is_result($r)){
10 $nick = $r[0]['nickname'];
11 $url = App::get_baseurl()."/display/$nick/$id";
15 notice( t('Item not found.') . EOL);