Fix compile
This commit is contained in:
parent
ac7ef0999d
commit
4956ab5ea3
@ -69,8 +69,6 @@ defmodule Pleroma.Web.Metadata.Providers.TwitterCard do
|
|||||||
Enum.reduce(attachments, [], fn attachment, acc ->
|
Enum.reduce(attachments, [], fn attachment, acc ->
|
||||||
rendered_tags =
|
rendered_tags =
|
||||||
Enum.reduce(attachment["url"], [], fn url, acc ->
|
Enum.reduce(attachment["url"], [], fn url, acc ->
|
||||||
content_type = url["mediaType"]
|
|
||||||
|
|
||||||
media_type =
|
media_type =
|
||||||
Enum.find(["image", "audio", "video"], fn media_type ->
|
Enum.find(["image", "audio", "video"], fn media_type ->
|
||||||
String.starts_with?(url["mediaType"], media_type)
|
String.starts_with?(url["mediaType"], media_type)
|
||||||
@ -92,10 +90,7 @@ defmodule Pleroma.Web.Metadata.Providers.TwitterCard do
|
|||||||
{:meta,
|
{:meta,
|
||||||
[
|
[
|
||||||
property: "twitter:player",
|
property: "twitter:player",
|
||||||
content:
|
content: Utils.attachment_url(url["href"])
|
||||||
Utils.attachment_url(
|
|
||||||
Pleroma.Uploaders.Uploader.preview_url(content_type, url["href"])
|
|
||||||
)
|
|
||||||
], []}
|
], []}
|
||||||
| acc
|
| acc
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user