Add media upload endpoint.

This commit is contained in:
Roger Braun 2017-09-14 08:08:32 +02:00
commit 641c24cdd4
4 changed files with 29 additions and 0 deletions

View file

@ -76,5 +76,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
}
assert expected == StatusView.render("attachment.json", %{attachment: object})
# If theres a "id", use that instead of the generated one
object = Map.put(object, "id", 2)
assert %{id: 2} = StatusView.render("attachment.json", %{attachment: object})
end
end