Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
86bcb87e
Commit
86bcb87e
authored
Jun 09, 2021
by
feld
Browse files
Fix incorrectly ordered arguments to the function and not properly merging lists.
parent
dc8fe91d
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/pleroma/web/metadata/providers/open_graph.ex
View file @
86bcb87e
...
...
@@ -126,9 +126,10 @@ defp maybe_add_dimensions(metadata, url) 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"
]
}
"
],
[]},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment