Fix OGP provider tests
This commit is contained in:
parent
3a5b3c5a3a
commit
a45a903480
|
@ -48,7 +48,7 @@ test "it renders all supported types of attachments and skips unknown types" do
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
result = OpenGraph.build_tags(%{object: note, user: user})
|
result = OpenGraph.build_tags(%{object: note, url: note.data["id"], user: user})
|
||||||
|
|
||||||
assert Enum.all?(
|
assert Enum.all?(
|
||||||
[
|
[
|
||||||
|
@ -85,7 +85,7 @@ test "it does not render attachments if post is nsfw" do
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
result = OpenGraph.build_tags(%{object: note, user: user})
|
result = OpenGraph.build_tags(%{object: note, url: note.data["id"], user: user})
|
||||||
|
|
||||||
assert {:meta, [property: "og:image", content: "https://pleroma.gov/tenshi.png"], []} in result
|
assert {:meta, [property: "og:image", content: "https://pleroma.gov/tenshi.png"], []} in result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue