diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-09-22 13:37:02 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-09-22 13:37:02 -0500 |
commit | 3104367931bdd259752fb9e2b7a19ba42a72e614 (patch) | |
tree | 92d59fed02dded222d51e300269f8a742e4c9c05 /test/web/mastodon_api/controllers/timeline_controller_test.exs | |
parent | bf181ca96850f3e5baaf8f3dcd6e11b926fcdeeb (diff) | |
parent | 02f12ec6253093d8bedaf84d78d0f7e533745e1b (diff) | |
download | pleroma-3104367931bdd259752fb9e2b7a19ba42a72e614.tar.gz pleroma-3104367931bdd259752fb9e2b7a19ba42a72e614.zip |
Merge remote-tracking branch 'upstream/develop' into email-fix-develop
Diffstat (limited to 'test/web/mastodon_api/controllers/timeline_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/timeline_controller_test.exs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/timeline_controller_test.exs b/test/web/mastodon_api/controllers/timeline_controller_test.exs index 517cabcff..c6e0268fd 100644 --- a/test/web/mastodon_api/controllers/timeline_controller_test.exs +++ b/test/web/mastodon_api/controllers/timeline_controller_test.exs @@ -114,8 +114,16 @@ defmodule Pleroma.Web.MastodonAPI.TimelineControllerTest do {:ok, _reply_from_friend} = CommonAPI.post(friend, %{status: "status", in_reply_to_status_id: reply_from_blockee}) - res_conn = get(conn, "/api/v1/timelines/public") - [%{"id" => ^activity_id}] = json_response_and_validate_schema(res_conn, 200) + # Still shows replies from yourself + {:ok, %{id: reply_from_me}} = + CommonAPI.post(blocker, %{status: "status", in_reply_to_status_id: reply_from_blockee}) + + response = + get(conn, "/api/v1/timelines/public") + |> json_response_and_validate_schema(200) + + assert length(response) == 2 + [%{"id" => ^reply_from_me}, %{"id" => ^activity_id}] = response end test "doesn't return replies if follow is posting with users from blocked domain" do |