Commit 4956ab5e authored by feld's avatar feld
Browse files

Fix compile

parent ac7ef099
......@@ -69,8 +69,6 @@ defp build_attachments(%{data: %{"attachment" => attachments}}) do
Enum.reduce(attachments, [], fn attachment, acc ->
rendered_tags =
Enum.reduce(attachment["url"], [], fn url, acc ->
content_type = url["mediaType"]
media_type =
Enum.find(["image", "audio", "video"], fn media_type ->
String.starts_with?(url["mediaType"], media_type)
......@@ -92,10 +90,7 @@ defp build_attachments(%{data: %{"attachment" => attachments}}) do
{:meta,
[
property: "twitter:player",
content:
Utils.attachment_url(
Pleroma.Uploaders.Uploader.preview_url(content_type, url["href"])
)
content: Utils.attachment_url(url["href"])
], []}
| acc
]
......
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