]> git.mxchange.org Git - friendica.git/blobdiff - mod/starred.php
Merge pull request #5830 from nupplaphil/update_from_boot
[friendica.git] / mod / starred.php
index 8d46f5bb84b8eca3213dd5e57f7c3857cce2eaf2..9b46b522bb9df752a78963da88b4427ea787a626 100644 (file)
@@ -22,7 +22,7 @@ function starred_init(App $a) {
        }
 
        $item = Item::selectFirstForUser(local_user(), ['starred'], ['uid' => local_user(), 'id' => $message_id]);
-       if (!DBA::is_result($item)) {
+       if (!DBA::isResult($item)) {
                killme();
        }
 
@@ -42,7 +42,7 @@ function starred_init(App $a) {
                        $rand = "?$rand";
                }
 
-               goaway(System::baseUrl() . "/" . $return_path . $rand);
+               $a->internalRedirect($return_path . $rand);
        }
 
        // the json doesn't really matter, it will either be 0 or 1