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
1 changed files with 1 additions and 1 deletions

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()}`