Add note about video thumbnails for code spelunkers unfamiliar with Media Preview...
authorMark Felder <feld@feld.me>
Thu, 10 Jun 2021 14:56:43 +0000 (09:56 -0500)
committerMark Felder <feld@feld.me>
Thu, 10 Jun 2021 14:56:43 +0000 (09:56 -0500)
lib/pleroma/web/metadata/providers/open_graph.ex

index ef4ad6885f925648d596d821d384c3ab74ac0dbb..df0cca74a6ce5a58a12f19af7966d170afa22f2a 100644 (file)
@@ -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) ->