about summary refs log tree commit diff
path: root/app/controllers/home_controller.rb
blob: 3a3d0ade40a77afb4ed325bbc18c44c6761b8812 (plain) (blame)
1
2
3
4
5
6
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