Extend MastoAPI to provide attachment mimetypes

This commit is contained in:
rinpatch 2019-03-15 11:58:12 +03:00
commit d7a34b604b
3 changed files with 10 additions and 2 deletions

View file

@ -196,7 +196,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
remote_url: "someurl",
preview_url: "someurl",
text_url: "someurl",
description: nil
description: nil,
pleroma: %{mime_type: "image/png"}
}
assert expected == StatusView.render("attachment.json", %{attachment: object})