projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aa7fc1
)
Add note about video thumbnails for code spelunkers unfamiliar with Media Preview...
author
Mark Felder
<feld@feld.me>
Thu, 10 Jun 2021 14:56:43 +0000
(09:56 -0500)
committer
Mark Felder
<feld@feld.me>
Thu, 10 Jun 2021 14:56:43 +0000
(09:56 -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 ef4ad6885f925648d596d821d384c3ab74ac0dbb..df0cca74a6ce5a58a12f19af7966d170afa22f2a 100644
(file)
--- a/
lib/pleroma/web/metadata/providers/open_graph.ex
+++ b/
lib/pleroma/web/metadata/providers/open_graph.ex
@@
-129,6
+129,8
@@
defmodule Pleroma.Web.Metadata.Providers.OpenGraph 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) ->