]> git.mxchange.org Git - friendica.git/blobdiff - mod/notice.php
Merge pull request #4152 from MrPetovan/task/4137-add-posts-only-feed
[friendica.git] / mod / notice.php
index 03f0e24037e6e75fb83ce09eec453722afbc5ee5..95d16f2dd2ca495c341466d672743d7cda436429 100644 (file)
@@ -1,15 +1,18 @@
 <?php
 
-/* identi.ca -> friendica items permanent-url compatibility */
+/* GNU Social -> friendica items permanent-url compatibility */
 
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Database\DBM;
 
 function notice_init(App $a) {
 
        $id = $a->argv[1];
        $r = q("SELECT `user`.`nickname` FROM `user` LEFT JOIN `item` ON `item`.`uid` = `user`.`uid` WHERE `item`.`id` = %d", intval($id));
-       if (dbm::is_result($r)) {
+       if (DBM::is_result($r)) {
                $nick = $r[0]['nickname'];
-               $url = App::get_baseurl() . "/display/$nick/$id";
+               $url = System::baseUrl() . "/display/$nick/$id";
                goaway($url);
        } else {
                $a->error = 404;