diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-12 22:15:43 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-12 22:15:43 +0300 |
commit | 936951826e689eecbe26ae4828aa5f9152d3e1b4 (patch) | |
tree | 9822f65f99e76a4af6d4faea525330b2cf2f82f5 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 007e0c1ce158bdfc11738a194944534837ae0258 (diff) | |
parent | 50269e9cacdbb7834c31fc7ad9872b68977e9f10 (diff) | |
download | pleroma-936951826e689eecbe26ae4828aa5f9152d3e1b4.tar.gz pleroma-936951826e689eecbe26ae4828aa5f9152d3e1b4.zip |
Merge branch 'develop' into test/activity_pub/transmogrifier.ex
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index e18f8f0d1..f4902d043 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -744,6 +744,16 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert id == to_string(activity.id) end + test "get statuses by IDs", %{conn: conn} do + %{id: id1} = insert(:note_activity) + %{id: id2} = insert(:note_activity) + + query_string = "ids[]=#{id1}&ids[]=#{id2}" + conn = get(conn, "/api/v1/statuses/?#{query_string}") + + assert [%{"id" => ^id1}, %{"id" => ^id2}] = json_response(conn, :ok) + end + describe "deleting a status" do test "when you created it", %{conn: conn} do activity = insert(:note_activity) |