1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-23 22:57:05 +09:00

Remove unused cached_filtered_status_page method from accounts controller (#28090)

This commit is contained in:
Matt Jankowski 2023-11-28 02:43:16 -05:00 committed by GitHub
parent 2d536bb05f
commit dfc7154767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,17 +96,4 @@ class AccountsController < ApplicationController
def tag_requested?
request.path.split('.').first.end_with?(Addressable::URI.parse("/tagged/#{params[:tag]}").normalize)
end
def cached_filtered_status_page
cache_collection_paginated_by_id(
filtered_statuses,
Status,
PAGE_SIZE,
params_slice(:max_id, :min_id, :since_id)
)
end
def params_slice(*keys)
params.slice(*keys).permit(*keys)
end
end