diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-13 07:12:34 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-13 07:12:34 +0300 |
commit | d8a178274bd1eb642270e52f207849014cba12bc (patch) | |
tree | 72712fb8f1854a055b0fa70aec5e7cc1cc0bfc5e /test | |
parent | 58b17196fa3f2583db5ee0534766350ed25727e0 (diff) | |
download | pleroma-d8a178274bd1eb642270e52f207849014cba12bc.tar.gz pleroma-d8a178274bd1eb642270e52f207849014cba12bc.zip |
fix Activity.get_by_id
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 9 |
1 files changed, 9 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 7b337044c..35c2236c8 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -2864,6 +2864,15 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert response == %{} end + + test "returns empty object when id isn't FlakeID", %{conn: conn} do + response = + conn + |> get("/api/v1/statuses/3ebbadd1-eb14-4e20-8118/card") + |> json_response(200) + + assert response == %{} + end end test "bookmarks" do |