]> git.mxchange.org Git - friendica.git/blobdiff - mod/starred.php
Better content detection for posts to Twitter
[friendica.git] / mod / starred.php
index beaa3b87d50d105e8e6b428a03b19188293168bd..f8e845bc6ec8f27181838abb00a542fdeedcac82 100644 (file)
@@ -1,7 +1,9 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
 
-function starred_init(&$a) {
+function starred_init(App $a) {
 
        require_once("include/threads.php");
 
@@ -43,12 +45,11 @@ function starred_init(&$a) {
                $rand = '_=' . time();
                if (strpos($return_path, '?')) {
                        $rand = "&$rand";
-               }
-               else {
+               } else {
                        $rand = "?$rand";
                }
 
-               goaway(App::get_baseurl() . "/" . $return_path . $rand);
+               goaway(System::baseUrl() . "/" . $return_path . $rand);
        }
 
        // the json doesn't really matter, it will either be 0 or 1