]> git.mxchange.org Git - friendica.git/blobdiff - mod/notice.php
Better content detection for posts to Twitter
[friendica.git] / mod / notice.php
index 03f0e24037e6e75fb83ce09eec453722afbc5ee5..ff8bed1800afc0e7ba0d6da0f989f5bcbb1e5159 100644 (file)
@@ -2,6 +2,8 @@
 
 /* identi.ca -> friendica items permanent-url compatibility */
 
+use Friendica\App;
+use Friendica\Core\System;
 
 function notice_init(App $a) {
 
@@ -9,7 +11,7 @@ function notice_init(App $a) {
        $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)) {
                $nick = $r[0]['nickname'];
-               $url = App::get_baseurl() . "/display/$nick/$id";
+               $url = System::baseUrl() . "/display/$nick/$id";
                goaway($url);
        } else {
                $a->error = 404;