Add optional OAuth application to reports (#30539)

This commit is contained in:
Emelia Smith authored and GitHub committed 2024-07-16 13:23:08 +00:00
1 parent fa54b61216
commit aa88aca0ad
11 files changed
+47 -3

No files matched your search

+1 -1
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