X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fstarred.php;h=9b46b522bb9df752a78963da88b4427ea787a626;hb=f2ca3e5be44192c486e8e3af2a993e065ad40a7d;hp=443308c27729962b50ce41554527e15f53820672;hpb=258683b49af514c925d732de2dcaf299cda68d04;p=friendica.git diff --git a/mod/starred.php b/mod/starred.php index 443308c277..9b46b522bb 100644 --- a/mod/starred.php +++ b/mod/starred.php @@ -4,7 +4,7 @@ */ use Friendica\App; use Friendica\Core\System; -use Friendica\Database\DBM; +use Friendica\Database\DBA; use Friendica\Model\Item; function starred_init(App $a) { @@ -22,7 +22,7 @@ function starred_init(App $a) { } $item = Item::selectFirstForUser(local_user(), ['starred'], ['uid' => local_user(), 'id' => $message_id]); - if (!DBM::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