diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-06 17:52:23 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-06 17:52:23 +0100 |
commit | 3824c588533f481011d2be19ff9476c001ffbee9 (patch) | |
tree | 96203d48ec3d8f54d69591d6b8616c9b4ac7a03b /app/controllers | |
parent | 831a187d74791a34270ecdc94df62bcc86dedd03 (diff) |
Adding GNU Public license, adding home timeline, reblog/favourite counters
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/home_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 95f29929c..3a3d0ade4 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,4 +1,7 @@ class HomeController < ApplicationController + before_action :authenticate_user! + def index + @statuses = Status.where(account: ([current_user.account] + current_user.account.following)).where('reblog_of_id IS NULL OR account_id != ?', current_user.account.id).order('created_at desc') end end |