logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 202ee5fd77e721c8822dd779c8b558ec8cfacfcc
parent 6aa7fc15df372478fbff02730bc521fab2ccd1e3
Author: Mark Felder <feld@feld.me>
Date:   Thu, 10 Jun 2021 09:56:43 -0500

Add note about video thumbnails for code spelunkers unfamiliar with Media Preview Proxy

Diffstat:

Mlib/pleroma/web/metadata/providers/open_graph.ex2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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) ->