mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Extract relationships methods
This commit is contained in:
parent
e2b1d41439
commit
7f8ab93b9d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user