]> git.mxchange.org Git - friendica.git/blobdiff - mod/p.php
Better content detection for posts to Twitter
[friendica.git] / mod / p.php
index 18c6a5d7f112cff4d610e8ee9c9e817593a5f9ee..3ea810614ea4be31680c03d21c3cbb26d4747dab 100644 (file)
--- a/mod/p.php
+++ b/mod/p.php
@@ -35,7 +35,7 @@ function p_init($a){
                        $parts = parse_url($r[0]["author-link"]);
                        $host = $parts["scheme"]."://".$parts["host"];
 
-                       if (normalise_link($host) != normalise_link(App::get_baseurl())) {
+                       if (normalise_link($host) != normalise_link(System::baseUrl())) {
                                $location = $host."/p/".urlencode($guid).".xml";
 
                                header("HTTP/1.1 301 Moved Permanently");