diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-02 07:39:19 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-02 07:39:19 +0300 |
commit | cf5ca7e45b7a5df18717c8b6ea0afa045e341f65 (patch) | |
tree | c586802831c88e484e770a8f62b402fa573485e3 /lib/pleroma/web/common_api/utils.ex | |
parent | 92efb888c7b25692af205b1a4dbce0ae689c439b (diff) | |
parent | ae921a0c24b9b1dcdea408decc691d66a538b6b8 (diff) | |
download | pleroma-cf5ca7e45b7a5df18717c8b6ea0afa045e341f65.tar.gz |
Merge remote-tracking branch 'remotes/origin/develop' into follow-request-notifications
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 |