mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 11:35:29 +01:00
8 lines
300 B
Ruby
8 lines
300 B
Ruby
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
|