0
0
Fork 0

Adding GNU Public license, adding home timeline, reblog/favourite counters

This commit is contained in:
Eugen Rochko 2016-03-06 17:52:23 +01:00
parent 831a187d74
commit 3824c58853
20 changed files with 429 additions and 37 deletions

View file

@ -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