aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/utils.ex
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-05-04 06:08:49 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-05-04 06:08:49 +0300
commitfe7a0d660e357a03558be3a95ddbb8b409ef9a9e (patch)
tree88078f00a739ce5ed11132a8ef7130b8c8ca9664 /lib/pleroma/web/common_api/utils.ex
parenta92c713d9c761563c72d0f660574878aa569249a (diff)
parent095635453ac58b9e01a32ad226c0b61466c16da0 (diff)
downloadpleroma-fe7a0d660e357a03558be3a95ddbb8b409ef9a9e.tar.gz
Merge branch 'develop' into issue/1276-2
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