diff options
| author | lain <lain@soykaf.club> | 2020-04-15 18:23:16 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-04-15 18:23:16 +0200 |
| commit | 6ace22b56a3ced833bd990de5715048d6bd32f80 (patch) | |
| tree | 5a25770b3c34a73e74987689158c53d40c7bb1a9 /test/web/mastodon_api/controllers/timeline_controller_test.exs | |
| parent | 44bfb491eae00d541e6d11c8b52b5de5bc0bd34e (diff) | |
| download | pleroma-6ace22b56a3ced833bd990de5715048d6bd32f80.tar.gz pleroma-6ace22b56a3ced833bd990de5715048d6bd32f80.zip | |
Chat: Add views, don't return them in timeline queries.
Diffstat (limited to 'test/web/mastodon_api/controllers/timeline_controller_test.exs')
| -rw-r--r-- | test/web/mastodon_api/controllers/timeline_controller_test.exs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/timeline_controller_test.exs b/test/web/mastodon_api/controllers/timeline_controller_test.exs index 06efdc901..a5c227991 100644 --- a/test/web/mastodon_api/controllers/timeline_controller_test.exs +++ b/test/web/mastodon_api/controllers/timeline_controller_test.exs @@ -51,6 +51,9 @@ defmodule Pleroma.Web.MastodonAPI.TimelineControllerTest do {:ok, activity} = CommonAPI.post(third_user, %{"status" => "repeated post"}) {:ok, _, _} = CommonAPI.repeat(activity.id, following) + # This one should not show up in the TL + {:ok, _activity} = CommonAPI.post_chat_message(third_user, user, ":gun:") + ret_conn = get(conn, uri) assert Enum.empty?(json_response(ret_conn, :ok)) |
