mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-07 05:01:36 +00:00
parent
482bdff3a4
commit
5303ae1d4b
16 changed files with 757 additions and 299 deletions
|
|
@ -5,4 +5,14 @@ function proxyImage(url, width) {
|
|||
return "/imageproxy?"+params.toString()
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("../types").ExtendedOwner} owner
|
||||
*/
|
||||
function proxyExtendedOwner(owner) {
|
||||
const clone = {...owner}
|
||||
clone.profile_pic_url = proxyImage(clone.profile_pic_url)
|
||||
return clone
|
||||
}
|
||||
|
||||
module.exports.proxyImage = proxyImage
|
||||
module.exports.proxyExtendedOwner = proxyExtendedOwner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue