Updated home_timeline default status limit on initial load

• Updated:
- home_timeline default status limit on initial load to 10, all other times limit is 20
This commit is contained in:
mgabdev 2020-05-22 00:05:17 -04:00
parent 78c8100768
commit 08a09ccc4f

View File

@ -27,8 +27,9 @@ class Api::V1::Timelines::HomeController < Api::BaseController
end
def home_statuses
theLimit = params[:max_id].nil? ? 10 : limit_param(DEFAULT_STATUSES_LIMIT)
account_home_feed.get(
limit_param(DEFAULT_STATUSES_LIMIT),
theLimit,
params[:max_id],
params[:since_id],
params[:min_id]