0
0
Fork 0

Add optional OAuth application to reports (#30539)

This commit is contained in:
Emelia Smith 2024-07-16 15:23:08 +02:00 committed by GitHub
parent fa54b61216
commit aa88aca0ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 47 additions and 3 deletions

View file

@ -10,7 +10,7 @@ class Api::V1::ReportsController < Api::BaseController
@report = ReportService.new.call(
current_account,
reported_account,
report_params
report_params.merge(application: doorkeeper_token.application)
)
render json: @report, serializer: REST::ReportSerializer