about summary refs log tree commit diff
path: root/app/controllers/home_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-06 17:19:26 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-06 17:19:26 +0100
commit1357c1cb3d6b5c46c96dfd2ee25a2a60bccc5092 (patch)
tree5c7f79bdbb6e03dd2eb5c6a9d51756d8955137e6 /app/controllers/home_controller.rb
parent84d2371d6a4eb928f47d436b92bc9ad292b7d452 (diff)
Add single user mode
Diffstat (limited to 'app/controllers/home_controller.rb')
-rw-r--r--app/controllers/home_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 9710aa84f..a25fe77da 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -5,15 +5,13 @@ class HomeController < ApplicationController
 
   def index
     @body_classes = 'app-body'
-    @home         = Feed.new(:home, current_user.account).get(20)
-    @mentions     = Feed.new(:mentions, current_user.account).get(20)
     @token        = find_or_create_access_token.token
   end
 
   private
 
   def authenticate_user!
-    redirect_to about_path unless user_signed_in?
+    redirect_to(Rails.configuration.x.single_user_mode ? account_path(Account.first) : about_path) unless user_signed_in?
   end
 
   def find_or_create_access_token