mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Add note about video thumbnails for code spelunkers unfamiliar with Media Preview Proxy
This commit is contained in:
parent
6aa7fc15df
commit
202ee5fd77
1 changed files with 2 additions and 0 deletions
|
@ -129,6 +129,8 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do
|
||||||
end
|
end
|
||||||
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
|
defp maybe_add_video_thumbnail(metadata, url) do
|
||||||
cond do
|
cond do
|
||||||
Pleroma.Config.get([:media_preview_proxy, :enabled], false) ->
|
Pleroma.Config.get([:media_preview_proxy, :enabled], false) ->
|
||||||
|
|
Loading…
Reference in a new issue