From: Mark Felder Date: Wed, 9 Jun 2021 16:05:24 +0000 (-0500) Subject: Fix incorrectly ordered arguments to the function and not properly merging lists. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=86bcb87e6c58797387934cbda5ec14b81f3f5f1d;p=akkoma Fix incorrectly ordered arguments to the function and not properly merging lists. --- diff --git a/lib/pleroma/web/metadata/providers/open_graph.ex b/lib/pleroma/web/metadata/providers/open_graph.ex index 332684782..0a90904af 100644 --- a/lib/pleroma/web/metadata/providers/open_graph.ex +++ b/lib/pleroma/web/metadata/providers/open_graph.ex @@ -126,9 +126,10 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do end end - defp maybe_add_video_thumbnail(url, metadata) do + defp maybe_add_video_thumbnail(metadata, url) do cond do Pleroma.Config.get([:media_preview_proxy, :enabled], false) -> + metadata ++ [ {:meta, [property: "og:image:width", content: "#{url["width"]}"], []}, {:meta, [property: "og:image:height", content: "#{url["height"]}"], []},