This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/controllers/home_controller.rb
2016-08-24 17:56:44 +02:00

10 lines
271 B
Ruby

class HomeController < ApplicationController
before_action :authenticate_user!
def index
@body_classes = 'app-body'
@home = Feed.new(:home, current_user.account).get(20)
@mentions = Feed.new(:mentions, current_user.account).get(20)
end
end