about summary refs log tree commit diff
path: root/app/controllers/home_controller.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-08-11 16:17:29 +0200
committerGitHub <noreply@github.com>2018-08-11 16:17:29 +0200
commitd215c43cdae0e7f5b8b682c42334bc8f5e8ce19f (patch)
treef64d403c44b4070b16b418ea66994c40b95dcb26 /app/controllers/home_controller.rb
parent741fb32beffcefec7b41238deeed05e545570b8a (diff)
parent84a2587d44286d2e566041d2264b6f525a27ecb7 (diff)
Merge pull request #633 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/home_controller.rb')
-rw-r--r--app/controllers/home_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 6e331dd2d..82e5265f5 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -64,7 +64,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