Show file size for media downloads

This closes #63
This commit is contained in:
viktorstrate
2020-08-11 22:34:42 +02:00
parent 849f2f25bf
commit 020321959d
5 changed files with 85 additions and 128 deletions

View File

@@ -108,10 +108,8 @@ func (r *mediaResolver) Downloads(ctx context.Context, obj *models.Media) ([]*mo
}
downloads = append(downloads, &models.MediaDownload{
Title: title,
Width: url.Width,
Height: url.Height,
URL: url.URL(),
Title: title,
MediaURL: url,
})
}