0
0
Fork 0

Add since_id param to feeds

This commit is contained in:
Eugen Rochko 2016-10-02 22:35:27 +02:00
parent a0f85774c4
commit 9fd3d7b6cd
4 changed files with 13 additions and 7 deletions

View file

@ -45,10 +45,10 @@ class Api::V1::StatusesController < ApiController
end
def home
@statuses = Feed.new(:home, current_user.account).get(20, params[:max_id]).to_a
@statuses = Feed.new(:home, current_user.account).get(20, params[:max_id], params[:since_id]).to_a
end
def mentions
@statuses = Feed.new(:mentions, current_user.account).get(20, params[:max_id]).to_a
@statuses = Feed.new(:mentions, current_user.account).get(20, params[:max_id], params[:since_id]).to_a
end
end