mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-18 16:43:51 -05:00
Rename cache_collection to preload_collection (view commit #30209)
This commit is contained in:
parent
cc4c306fbe
commit
8bcd25d82e
@ -27,7 +27,7 @@ class AccountsController < ApplicationController
|
||||
limit = params[:limit].present? ? [params[:limit].to_i, PAGE_SIZE_MAX].min : PAGE_SIZE
|
||||
offset = params[:offset].present? ? params[:offset].to_i : OFFSET
|
||||
@statuses = filtered_statuses.without_reblogs.limit(limit).offset(offset)
|
||||
@statuses = cache_collection(@statuses, Status)
|
||||
@statuses = preload_collection(@statuses, Status)
|
||||
end
|
||||
|
||||
format.json do
|
||||
|
Loading…
x
Reference in New Issue
Block a user