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