1
0
Fork 0
forked from mirrors/akkoma

MastoAPI: Also return text_url in attachments.

This commit is contained in:
Roger Braun 2017-09-14 08:38:48 +02:00
parent 7f3ce5c1a0
commit 6258c6b6b3
2 changed files with 3 additions and 1 deletions

View file

@ -73,6 +73,7 @@ def render("attachment.json", %{attachment: attachment}) do
url: href,
remote_url: href,
preview_url: href,
text_url: href,
type: type
}
end

View file

@ -71,7 +71,8 @@ test "attachments" do
type: "image",
url: "someurl",
remote_url: "someurl",
preview_url: "someurl"
preview_url: "someurl",
text_url: "someurl"
}
assert expected == StatusView.render("attachment.json", %{attachment: object})