implement invisible support for remote users

This commit is contained in:
Ariadne Conill 2019-10-05 20:41:33 +00:00
commit ef659331b0
7 changed files with 95 additions and 7 deletions

View file

@ -348,6 +348,14 @@ defmodule HttpRequestMock do
}}
end
def get("http://mastodon.example.org/users/relay", _, _, Accept: "application/activity+json") do
{:ok,
%Tesla.Env{
status: 200,
body: File.read!("test/fixtures/tesla_mock/relay@mastdon.example.org.json")
}}
end
def get("http://mastodon.example.org/users/gargron", _, _, Accept: "application/activity+json") do
{:error, :nxdomain}
end