diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-28 16:50:37 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-28 16:50:37 +0400 |
commit | 560f2c1979ca4d49f18abd6de6aac49875bfc771 (patch) | |
tree | dc8b11f412d49022415dd4051e765a53cd4fa44b /lib/pleroma/web/common_api/utils.ex | |
parent | 12bb7fc0dc94068d8337f10fc337ab23c8c7e77e (diff) | |
download | pleroma-560f2c1979ca4d49f18abd6de6aac49875bfc771.tar.gz |
Add OpenAPI spec for ReportController
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 3 |
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 |