Extract relationships methods

This commit is contained in:
Matt Jankowski 2025-08-16 14:59:06 -04:00
parent e2b1d41439
commit 7f8ab93b9d

View File

@ -24,11 +24,15 @@ class Api::V1::Statuses::ContextsController < Api::BaseController
process_async_refresh!
render json: @context, serializer: REST::ContextSerializer, relationships: StatusRelationshipsPresenter.new(statuses, current_user&.account_id)
render json: @context, serializer: REST::ContextSerializer, relationships:
end
private
def relationships
StatusRelationshipsPresenter.new(statuses, current_user&.account_id)
end
def process_async_refresh!
async_refresh = AsyncRefresh.new(refresh_key)