[home] Remove duplicate reposts from timeline feed, improve query performance, and increase batch size

This commit is contained in:
azuregc7
2021-01-30 20:24:57 -08:00
parent 8b8e8ec8e5
commit b793f5f908
2 changed files with 32 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController
end
def home_statuses
theLimit = params[:max_id].nil? ? 10 : limit_param(DEFAULT_STATUSES_LIMIT)
theLimit = params[:max_id].nil? ? 20 : limit_param(DEFAULT_STATUSES_LIMIT)
account_home_feed.get(
theLimit,
params[:max_id],