Commit 86bcb87e authored by feld's avatar feld
Browse files

Fix incorrectly ordered arguments to the function and not properly merging lists.

parent dc8fe91d
......@@ -126,9 +126,10 @@ defp maybe_add_dimensions(metadata, url) do
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"]}"], []},
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