|
|
|
@ -78,7 +78,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
expected = %{
|
|
|
|
|
id: 1638338801,
|
|
|
|
|
id: "1638338801",
|
|
|
|
|
type: "image",
|
|
|
|
|
url: "someurl",
|
|
|
|
|
remote_url: "someurl",
|
|
|
|
@ -90,7 +90,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
|
|
|
|
|
|
|
|
|
# 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})
|
|
|
|
|
assert %{id: "2"} = StatusView.render("attachment.json", %{attachment: object})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test "a reblog" do
|
|
|
|
|