16 Commits

Author SHA1 Message Date
jj
ba2d266de7
api: dynamic env reloading from path/url 2025-05-24 15:52:27 +00:00
jj
f5df78ffec
api/utils: retry getting redirecting url with fetch() if request() fails 2025-04-02 12:29:18 +00:00
Felix Vuong 🍂
a6240d0192
api/url: replace user-agent argument with headers in redirect helpers 2025-04-02 11:44:13 +00:00
wukko
b3b893b8f3
api/misc/utils: add one (1) line break 2025-02-09 17:48:37 +06:00
jj
6e8b4f30c1
api/url: add function for resolving shortlinks
motivation: we frequently need to resolve shortlinks to full URLs
let's have a common standard function for doing this safely
instead of reinventing the wheel in every single service module
2025-02-08 13:53:29 +00:00
wukko
0ab3fe4d2a
api: itunnel transplants (#1065) 2025-01-21 00:10:49 +06:00
jj
600c769141
api/stream: implement itunnel transplants 2025-01-20 15:55:26 +00:00
wukko
de5eca19a5
api/utils: replace redirectStatuses array with a set
Co-authored-by: jj <log@riseup.net>
2025-01-20 19:30:11 +06:00
wukko
9bdcb9d821
api/utils: update getRedirectingURL to accept more statuses & dispatcher 2025-01-20 18:51:37 +06:00
wukko
1cbffc2d75
api/stream/types: convert metadata in one place
also sanitize values & throw an error if tag isn't supported
2024-11-24 18:13:22 +06:00
wukko
6770738116
api/create-filename: build & sanitize filenames in one place 2024-11-24 18:12:21 +06:00
wukko
407c27ed86
api/utils: rename metadata converter function 2024-11-24 14:55:46 +06:00
wukko
6a430545d2
api/utils/cleanString: add more forbidden chars 2024-11-24 14:55:10 +06:00
wukko
0b4d703d0f
api/utils: remove unused functions 2024-10-28 19:56:37 +06:00
dumbmoron
d560c0d34a
api: return correct extension for gif downloads in api response 2024-09-18 18:03:04 +00:00
wukko
dd831e13e8
api: flatten code directories, better filenames, remove old files 2024-08-03 14:47:13 +06:00