aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/utils.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-01 12:48:56 +0000
committerlain <lain@soykaf.club>2020-05-01 12:48:56 +0000
commit607e06c245e8a36d7b720d71b45e1fc962ede3ab (patch)
tree00931f919f1abc7943ea2008100f5093f0d21457 /lib/pleroma/web/common_api/utils.ex
parent44fbd09709b43a7eedff60365c3ff487dbd7a5c9 (diff)
parent1898054da4bcccb25e0bcd9d6463af38ced43351 (diff)
downloadpleroma-607e06c245e8a36d7b720d71b45e1fc962ede3ab.tar.gz
Merge branch 'openapi/reports' into 'develop'
Add OpenAPI spec for ReportController See merge request pleroma/pleroma!2434
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r--lib/pleroma/web/common_api/utils.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex
index 945e63e22..6540fa5d1 100644
--- a/lib/pleroma/web/common_api/utils.ex
+++ b/lib/pleroma/web/common_api/utils.ex
@@ -504,7 +504,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
end
end
- def get_report_statuses(%User{ap_id: actor}, %{"status_ids" => status_ids}) do
+ def get_report_statuses(%User{ap_id: actor}, %{status_ids: status_ids})
+ when is_list(status_ids) do
{:ok, Activity.all_by_actor_and_id(actor, status_ids)}
end