namespace Friendica\Module;
use Friendica\BaseModule;
+use Friendica\DI;
use Friendica\Model\Item;
/**
$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