Commit Graph

35 Commits

Author SHA1 Message Date
Girish Ramakrishnan
6ac0cd421a use the @cloudron/superagent module 2025-07-10 10:56:05 +02:00
Girish Ramakrishnan
8fc9685a1b test: make it work again 2025-06-11 15:14:15 +02:00
Girish Ramakrishnan
8e58349bfa replace with custom superagent based on fetch API 2025-02-15 15:14:09 +01:00
Girish Ramakrishnan
5c605be45c isBase64 check is redundant
As long as it is a string and even if you throw in some garbage, it returns
an empty buffer.

> b = Buffer.from('!@#%%^@', 'base64')
<Buffer >
2025-02-10 14:58:36 +01:00
Girish Ramakrishnan
2bfa49cc2e applinks: add tests 2024-12-04 16:17:07 +01:00
Girish Ramakrishnan
fdf8025a02 style: remove -> del 2024-12-03 17:36:50 +01:00
Girish Ramakrishnan
62d3212f88 applink: add timeout when detecting metadata 2024-11-18 08:18:39 +05:30
Johannes Zellner
5857c05e01 Remove noisy debug for applinks 2023-12-03 15:11:16 +01:00
Johannes Zellner
81eb4bdebb Improve jsdom usage for applink icons 2023-12-03 14:24:45 +01:00
Johannes Zellner
4ad5bd71f1 Try to only use sensible icons for applinks 2023-10-31 14:55:24 +01:00
Girish Ramakrishnan
f8ec24b973 lint 2023-07-10 20:32:53 +05:30
Johannes Zellner
2cfa5511d5 Do not require applink icons to be pngs 2023-07-10 15:56:59 +02:00
Johannes Zellner
25abd8a67d Support more favicon cases for applinks 2023-07-10 15:22:56 +02:00
Johannes Zellner
3a5d570e3c Do not update applink icon if it is not set in update 2023-07-10 14:21:06 +02:00
Girish Ramakrishnan
057e4db6c1 use debug instead of console.error 2023-04-30 21:49:34 +02:00
Johannes Zellner
e662cd7c80 If we can't fetch applink upstreamUri, just stop icon and title detection
This may happen for Cloudflare protected domains
2022-10-27 15:41:51 +02:00
Johannes Zellner
cb8d90699b Better feedback if no applink schema is provided 2022-10-06 19:49:33 +02:00
Johannes Zellner
6e4e8bf74d Add applink upstreamUri validation 2022-10-06 19:35:07 +02:00
Johannes Zellner
87a00b9209 Fixup app link icon fetching and do not overwrite upstreamUri with redirect 2022-10-06 19:23:15 +02:00
Girish Ramakrishnan
d51b022721 applinks: make get return null
this style matches rest of the code base
2022-10-06 11:32:42 +02:00
Girish Ramakrishnan
cb9b9272cd lint 2022-10-06 11:27:12 +02:00
Johannes Zellner
ae376774e4 Ensure we don't put empty applink icon buffers in db 2022-09-28 15:10:17 +02:00
Johannes Zellner
ff8c2184f6 Convert applink ts to timestamp 2022-09-28 14:59:30 +02:00
Johannes Zellner
a7b056a84c Some tweaks for better app link detection logic 2022-09-28 14:23:45 +02:00
Johannes Zellner
81b59eae36 improve applink businesslogic tests and fixup api 2022-09-19 21:00:44 +02:00
Johannes Zellner
2facc6774b applinks icon improvements 2022-07-08 18:07:52 +02:00
Johannes Zellner
e800c7d282 Only list applinks a user has access to 2022-07-08 15:14:48 +02:00
Johannes Zellner
a58228952a Support accessRestriction for visibility of applinks 2022-07-07 19:44:59 +02:00
Johannes Zellner
3511856a7c support applink tags 2022-07-07 19:11:47 +02:00
Johannes Zellner
006a53dc7a Do not spam the logs on get queries 2022-07-07 18:56:21 +02:00
Johannes Zellner
b54113ade3 Improve applink meta info detection 2022-07-07 18:19:53 +02:00
Johannes Zellner
ac00225a75 Support applink update 2022-07-07 16:53:06 +02:00
Johannes Zellner
f43fd21929 Better applink icon support 2022-07-07 16:06:04 +02:00
Johannes Zellner
1185dc7f79 Attempt to fetch applink icon and label from page 2022-07-07 12:36:53 +02:00
Johannes Zellner
e1ac2b7b00 Add initial applink support 2022-07-06 20:37:52 +02:00