diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-01-26 11:23:05 -0600 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-01-26 11:23:05 -0600 |
commit | d770cffce0aec0eeb427c8851437f04329700da9 (patch) | |
tree | 8a6f4db2849e613e0be968d3c0edc605b7040563 /test/web/mastodon_api/controllers/status_controller_test.exs | |
parent | 108a39c8766402dcbd0235d8746e2100a18e5813 (diff) | |
parent | d9e2bd8f40b7d77713a72ef94da2fbe8ffa75b91 (diff) | |
download | pleroma-d770cffce0aec0eeb427c8851437f04329700da9.tar.gz pleroma-d770cffce0aec0eeb427c8851437f04329700da9.zip |
Merge branch 'develop' into issue/1280
Diffstat (limited to 'test/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/status_controller_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs index 307221c5d..b03b4b344 100644 --- a/test/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/web/mastodon_api/controllers/status_controller_test.exs @@ -638,6 +638,13 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do assert to_string(activity.id) == id end + test "favoriting twice will just return 200", %{conn: conn} do + activity = insert(:note_activity) + + post(conn, "/api/v1/statuses/#{activity.id}/favourite") + assert post(conn, "/api/v1/statuses/#{activity.id}/favourite") |> json_response(200) + end + test "returns 400 error for a wrong id", %{conn: conn} do conn = post(conn, "/api/v1/statuses/1/favourite") |