Spoiler Fix #92

Closed
Guzio wants to merge 4 commits from Guzio/out-of-your-element:spoilerfix into main
Showing only changes of commit 4350bff202 - Show all commits
Guzio 2026-10-19 14:06:33 +02:00

View file

@ -144,7 +144,7 @@ function getPublicUrlForCdn(url, spoiler="") {
const unsignedHash = hasher.h64(match[3]) // attachment ID
const signedHash = unsignedHash - 0x8000000000000000n // shifting down to signed 64-bit range
db.prepare("INSERT OR IGNORE INTO media_proxy (permitted_hash) VALUES (?)").run(signedHash)
return `${reg.ooye.bridge_origin}/download/discord${match[1]}/${spoiler}${match[2]}/${match[3]}/${match[4]}`
return `${reg.ooye.bridge_origin}/download/discord${match[1]}/${match[2]}/${spoiler}${match[3]}/${match[4]}`
}
/**