Commit 26445853 authored by feld's avatar feld
Browse files

Formatting

parent 2c401daf
......@@ -86,7 +86,8 @@ defp build_attachments(id, %{data: %{"attachment" => attachments}}) do
{:meta, [property: "twitter:player:width", content: "480"], []},
{:meta, [property: "twitter:player:height", content: "480"], []},
{:meta, [property: "twitter:player:stream", content: url["href"]], []},
{:meta, [property: "twitter:player:stream:content_type", content: url["mediaType"]], []}
{:meta,
[property: "twitter:player:stream:content_type", content: url["mediaType"]], []}
| acc
]
......
......@@ -145,7 +145,11 @@ test "it renders supported types of attachments and skips unknown types" do
], []},
{:meta, [property: "twitter:player:width", content: "480"], []},
{:meta, [property: "twitter:player:height", content: "480"], []},
{:meta, [property: "twitter:player:stream", content: "https://pleroma.gov/about/juche.webm"], []},
{:meta,
[
property: "twitter:player:stream",
content: "https://pleroma.gov/about/juche.webm"
], []},
{:meta, [property: "twitter:player:stream:content_type", content: "video/webm"], []}
] == result
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment