1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-19 04:28:48 +00:00

Create post viewer

This commit is contained in:
Cadence Fish
2020-01-19 04:38:14 +13:00
parent 693c083a99
commit 59d891b94b
19 changed files with 479 additions and 84 deletions

View File

@@ -1,5 +1,6 @@
function proxyImage(url) {
function proxyImage(url, width) {
const params = new URLSearchParams()
if (width) params.set("width", width)
params.set("url", url)
return "/imageproxy?"+params.toString()
}