about summary refs log tree commit diff
path: root/app/controllers/home_controller.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-11 15:45:42 +0200
committerThibaut Girka <thib@sitedethib.com>2018-08-11 15:45:42 +0200
commit84a2587d44286d2e566041d2264b6f525a27ecb7 (patch)
treef64d403c44b4070b16b418ea66994c40b95dcb26 /app/controllers/home_controller.rb
parent741fb32beffcefec7b41238deeed05e545570b8a (diff)
parent44680c46ed55065d73f6fc64e349b39fa57673e9 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
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