The isHTTPS call won't work in cli mode, so install_cli.php should
solve it some other way for initial profile url and User uri.
$r = Router::get();
$path = $r->build($action, $args, $params, $fragment);
- $ssl = StatusNet::isHTTPS() || common_is_sensitive($action);
+ $ssl = common_config('site', 'ssl') === 'always'
+ || StatusNet::isHTTPS()
+ || common_is_sensitive($action);
if (common_config('site','fancy')) {
$url = common_path($path, $ssl, $addSession);