forked from AkkomaGang/akkoma
Fix incorrectly ordered arguments to the function and not properly merging lists.
This commit is contained in:
parent
dc8fe91dec
commit
86bcb87e6c
1 changed files with 2 additions and 1 deletions
|
@ -126,9 +126,10 @@ defp maybe_add_dimensions(metadata, url) do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp maybe_add_video_thumbnail(url, metadata) do
|
defp maybe_add_video_thumbnail(metadata, url) do
|
||||||
cond do
|
cond do
|
||||||
Pleroma.Config.get([:media_preview_proxy, :enabled], false) ->
|
Pleroma.Config.get([:media_preview_proxy, :enabled], false) ->
|
||||||
|
metadata ++
|
||||||
[
|
[
|
||||||
{:meta, [property: "og:image:width", content: "#{url["width"]}"], []},
|
{:meta, [property: "og:image:width", content: "#{url["width"]}"], []},
|
||||||
{:meta, [property: "og:image:height", content: "#{url["height"]}"], []},
|
{:meta, [property: "og:image:height", content: "#{url["height"]}"], []},
|
||||||
|
|
Loading…
Reference in a new issue