1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-16 21:27:30 +00:00

Save videos with .mp4 extension

Fixes https://todo.sr.ht/~cadence/bibliogram-issues/68
This commit is contained in:
Cadence Ember 2022-08-01 20:10:33 +12:00
parent ab58306cee
commit 1872391a8e
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -42,7 +42,7 @@ function proxyProfilePic(url, userID) {
}
function proxyVideo(url, shortcode) {
shortcode = shortcode ? `/${shortcode}.jpg` : ""
shortcode = shortcode ? `/${shortcode}.mp4` : ""
const params = new URLSearchParams()
params.set("url", url)
return `/videoproxy${shortcode}?${params.toString()}`