You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
300 B

  1. class HomeController < ApplicationController
  2. before_action :authenticate_user!
  3. def index
  4. @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')
  5. end
  6. end