]> cat aescling's git repositories - mastodon.git/commitdiff
Ensure single user is a local user (fixes #8154) (#8157)
authorThibG <thib@sitedethib.com>
Sat, 11 Aug 2018 09:53:10 +0000 (11:53 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 11 Aug 2018 09:53:10 +0000 (11:53 +0200)
app/controllers/home_controller.rb

index b71424107bc30df13944ed50109057e66d0a8834..b5d6460f9fc1a2dfca8a904a661a5db55b924e89 100644 (file)
@@ -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