From 1c8477eab214629d26d9526b386bf75729917060 Mon Sep 17 00:00:00 2001 From: Marcin Cieślak Date: Sat, 15 Apr 2017 16:46:27 +0200 Subject: Give SINGLE_USER a chance to register (#1820) An attempt to open a brand new Mastodon instance configured as SINGLE_USER_MODE=true will cause an exception. Enable temporary registration if we have no users in the database Fixes #1817 --- app/views/accounts/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/accounts') diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index 3b0d69dcd..9c4e32e0e 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -14,7 +14,7 @@ %meta{ property: 'og:image:height', content: '120' }/ %meta{ property: 'twitter:card', content: 'summary' }/ -- if !user_signed_in? && !Rails.configuration.x.single_user_mode +- if !user_signed_in? && !single_user_mode? = render partial: 'shared/landing_strip', locals: { account: @account } .h-feed -- cgit