From 4956ab5ea30e49147947ba321c1bf93d38d790bd Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 12 Feb 2019 00:25:12 +0000 Subject: [PATCH] Fix compile --- lib/pleroma/web/metadata/twitter_card.ex | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/pleroma/web/metadata/twitter_card.ex b/lib/pleroma/web/metadata/twitter_card.ex index 0365e4647..13fa22240 100644 --- a/lib/pleroma/web/metadata/twitter_card.ex +++ b/lib/pleroma/web/metadata/twitter_card.ex @@ -69,8 +69,6 @@ defmodule Pleroma.Web.Metadata.Providers.TwitterCard 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 @@ defmodule Pleroma.Web.Metadata.Providers.TwitterCard 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 ] -- 2.45.2