From: ThibG Date: Sat, 11 Aug 2018 09:53:10 +0000 (+0200) Subject: Ensure single user is a local user (fixes #8154) (#8157) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=44680c46ed55065d73f6fc64e349b39fa57673e9;p=mastodon.git Ensure single user is a local user (fixes #8154) (#8157) --- diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index b71424107..b5d6460f9 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -58,7 +58,7 @@ class HomeController < ApplicationController if request.path.start_with?('/web') new_user_session_path elsif single_user_mode? - short_account_path(Account.first) + short_account_path(Account.local.where(suspended: false).first) else about_path end