X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FPinned.php;h=97364ceffbc147b9bfecb54f7ff3665346591ff4;hb=71b6226909aaef47ae4cfa7ba3d880cb0a73e2ef;hp=e4c0d2b0e71442d4df393f8d215f52d351adac2f;hpb=91ba4bb2aba53d74e5dc6d11dea6ad73b5e4fafe;p=friendica.git diff --git a/src/Module/Pinned.php b/src/Module/Pinned.php index e4c0d2b0e7..97364ceffb 100644 --- a/src/Module/Pinned.php +++ b/src/Module/Pinned.php @@ -1,8 +1,28 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\DI; use Friendica\Model\Item; /** @@ -30,7 +50,7 @@ class Pinned extends BaseModule $returnPath = $_REQUEST['return'] ?? ''; if (!empty($returnPath)) { $rand = '_=' . time() . (strpos($returnPath, '?') ? '&' : '?') . 'rand'; - self::getApp()->internalRedirect($returnPath . $rand); + DI::baseUrl()->redirect($returnPath . $rand); } // the json doesn't really matter, it will either be 0 or 1