Add OpenAPI spec for AdminAPI.ReportController

This commit is contained in:
Egor Kislitsyn 2020-06-03 19:10:11 +04:00
commit c16315d055
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
6 changed files with 310 additions and 88 deletions

View file

@ -740,6 +740,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
def get_reports(params, page, page_size) do
params =
params
|> Map.new(fn {key, value} -> {to_string(key), value} end)
|> Map.put("type", "Flag")
|> Map.put("skip_preload", true)
|> Map.put("preload_report_notes", true)