diff options
author | rinpatch <rin@patch.cx> | 2021-04-16 09:53:47 +0000 |
---|---|---|
committer | rinpatch <rin@patch.cx> | 2021-04-16 09:53:47 +0000 |
commit | 79376b4afb8bba0766cb3d04179aeaf4c0b7000b (patch) | |
tree | f154defcd60036f76fbaf92154f0649c2e4892f3 /test/support/http_request_mock.ex | |
parent | 0ababdc068f0fd7655b5f8440a5a8c9759a32fea (diff) | |
parent | 1885268c9c242aca2a51bd15ed839bd65d6a52dc (diff) | |
download | pleroma-79376b4afb8bba0766cb3d04179aeaf4c0b7000b.tar.gz pleroma-79376b4afb8bba0766cb3d04179aeaf4c0b7000b.zip |
Merge branch 'feature/521-pinned-post-federation' into 'develop'
Pinned posts federation
Closes #521
See merge request pleroma/pleroma!3312
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index eb692fab5..8807c2d14 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -89,6 +89,18 @@ defmodule HttpRequestMock do }} end + def get("https://mastodon.sdf.org/users/rinpatch/collections/featured", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: + File.read!("test/fixtures/users_mock/masto_featured.json") + |> String.replace("{{domain}}", "mastodon.sdf.org") + |> String.replace("{{nickname}}", "rinpatch"), + headers: [{"content-type", "application/activity+json"}] + }} + end + def get("https://patch.cx/objects/tesla_mock/poll_attachment", _, _, _) do {:ok, %Tesla.Env{ @@ -905,6 +917,18 @@ defmodule HttpRequestMock do }} end + def get("https://mastodon.social/users/lambadalambda/collections/featured", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: + File.read!("test/fixtures/users_mock/masto_featured.json") + |> String.replace("{{domain}}", "mastodon.social") + |> String.replace("{{nickname}}", "lambadalambda"), + headers: activitypub_object_headers() + }} + end + def get("https://apfed.club/channel/indio", _, _, _) do {:ok, %Tesla.Env{ |