Merge remote-tracking branch 'origin/features/main' into features/quote

This commit is contained in:
2024-02-04 11:40:23 +09:00
61 changed files with 770 additions and 238 deletions

View File

@@ -50,6 +50,7 @@ class Api::V1::StatusesController < Api::BaseController
@context = Context.new(ancestors: loaded_ancestors, descendants: loaded_descendants)
statuses = [@status] + @context.ancestors + @context.descendants
accounts = statuses.filter_map { |status| status.quote&.account }.uniq
account_ids = statuses.filter(&:quote?).map { |status| status.quote.account_id }.uniq
render json: @context, serializer: REST::ContextSerializer,
relationships: StatusRelationshipsPresenter.new(statuses, current_user&.account_id),