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
202ee5fd
Commit
202ee5fd
authored
Jun 10, 2021
by
feld
Browse files
Add note about video thumbnails for code spelunkers unfamiliar with Media Preview Proxy
parent
6aa7fc15
Pipeline
#36559
passed with stages
in 6 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/metadata/providers/open_graph.ex
View file @
202ee5fd
...
...
@@ -129,6 +129,8 @@ defp maybe_add_dimensions(metadata, url) do
end
end
# Media Preview Proxy makes thumbnails of videos without resizing, so we can trust the
# width and height of the source video.
defp
maybe_add_video_thumbnail
(
metadata
,
url
)
do
cond
do
Pleroma
.
Config
.
get
([
:media_preview_proxy
,
:enabled
],
false
)
->
...
...
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