projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8fe91
)
Fix incorrectly ordered arguments to the function and not properly merging lists.
author
Mark Felder
<feld@feld.me>
Wed, 9 Jun 2021 16:05:24 +0000
(11:05 -0500)
committer
Mark Felder
<feld@feld.me>
Wed, 9 Jun 2021 16:05:24 +0000
(11:05 -0500)
lib/pleroma/web/metadata/providers/open_graph.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/metadata/providers/open_graph.ex
b/lib/pleroma/web/metadata/providers/open_graph.ex
index 332684782a49df192657cdd335565a38b784ddc2..0a90904af53cb9788642486157d159682105408b 100644
(file)
--- 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"]}"], []},