Commit graph

49 commits

Author SHA1 Message Date
Wazbat
1f8ca1c8b3 🐛 Fixed user fetching 2023-04-15 20:04:44 +02:00
Wazbat
e7d8933056 Added support for fetching user profiles 2023-04-15 17:12:41 +02:00
dangered wolf
bdd83d0659
Remove guest token elongator commented code 2023-04-10 22:28:55 -04:00
dangered wolf
87956c6759
Prettier and update fakeChromeVersion 2023-04-09 18:08:01 -04:00
dangered wolf
fc5bc49a85
Replace api fallback domain with elongator 2023-04-09 18:04:36 -04:00
dangered wolf
eabeb7fdc6
Revert "Don't use cached tokens for fallback"
This reverts commit 5a6deabd84.
2023-04-06 19:31:40 -04:00
dangered wolf
5a6deabd84
Don't use cached tokens for fallback 2023-04-06 18:29:49 -04:00
dangered wolf
7dce798648
Bug fix fallback 2023-04-06 17:56:21 -04:00
dangered wolf
57620d3004
Attempt to implement API fallback proxy 2023-04-06 17:49:41 -04:00
dangered wolf
3b9edfe3ee
Update message because of EU NSFW Tweet block 2023-04-06 16:06:03 -04:00
dangered wolf
392423957e
Recognize Firefox/38 as a bot (Discord) 2023-02-03 12:18:46 -05:00
dangered wolf
c71690c52d
Add variable user agents for fetch 2023-02-02 17:17:32 -05:00
dangered wolf
cd00dc853a
Minimum remainingRateLimit of 10 2022-09-16 20:24:49 -04:00
dangered wolf
f774b4793a
Treat responses as unknown in fetch code 2022-09-16 20:22:45 -04:00
dangered wolf
f67d834876
Decouple token fetching from conversation API 2022-09-16 20:18:08 -04:00
dangered wolf
9fe1a2e3c3
Bugfix, prettier 2022-08-28 15:26:31 -04:00
dangered wolf
5feb0a4478
Change API_ATTEMPTS to 16 to improve GH Actions 2022-08-25 03:44:07 -04:00
dangered wolf
9071a4725d
Log when Twitter denies guest token repeatedly 2022-08-25 03:36:02 -04:00
dangered wolf
de721149d2
Fix unit tests 2022-08-25 03:23:14 -04:00
dangered wolf
6a876d48d5
Use ignoreMethod on cache.delete 2022-08-20 15:42:12 -04:00
dangered wolf
6acbb2db1c
Hopefully fix Sentry/3488727182 2022-08-18 21:02:24 -04:00
dangered wolf
ad932839c6
Fixed guest token purging 2022-08-18 16:53:06 -04:00
dangered wolf
6b4ab57f17
Revert "Moved some headers out of fetch function"
This reverts commit a410c0c044.
2022-08-18 16:50:26 -04:00
dangered wolf
a410c0c044
Moved some headers out of fetch function 2022-08-18 16:49:38 -04:00
dangered wolf
897ba47ca2
Control guest token caching from constant 2022-08-18 11:46:42 -04:00
dangered wolf
01b3b8d79b
Fix borked guest token caching in workers runtime 2022-08-18 11:11:16 -04:00
dangered wolf
f49846d4c5
Some tweaks to maybe make it work better 2022-08-18 03:58:25 -04:00
dangered wolf
7707c0d2d0
Implement Cloudflare guest token caching 2022-08-18 03:11:19 -04:00
dangered wolf
4ae10034db
switch on guest token cache (borked) 2022-08-18 00:49:57 -04:00
dangered wolf
043f6b6e0c
Re-organizing stuff! Better comments! 2022-08-15 18:38:52 -04:00
dangered wolf
9669ff2889
Fixed many of the eslint issues 2022-07-26 01:46:43 -04:00
dangered wolf
2b43217dc8
Added automatic Tweet translation 2022-07-23 21:42:36 -04:00
dangered wolf
71653d5b1a
Prettier 2022-07-23 14:16:22 -04:00
dangered wolf
1a84aff39f
Guest token caching (doesn't seem to work?) 2022-07-18 19:53:01 -04:00
dangered wolf
7f64a1bd57
Move more fetch into loop to increase reliability 2022-07-15 17:41:16 -04:00
dangered wolf
a83cb8ea68
Formatting 2022-07-15 17:38:24 -04:00
dangered wolf
f7a4203003
Handle invalid API responses better 2022-07-15 16:36:24 -04:00
dangered wolf
e7308ed55d
Going hardcore, up to 10 guest token retries 2022-07-15 16:27:50 -04:00
dangered wolf
5307bfc1a4
Fixed error handling (again) 2022-07-15 16:25:38 -04:00
dangered wolf
651d4d3176
Fixed me breaking guest token error handling 2022-07-15 16:12:05 -04:00
dangered wolf
d4cf2cc5b8
Change ERROR_PRIVATE string and run prettier 2022-07-15 16:01:49 -04:00
dangered wolf
5fbe0be3bf
Add error handling for private tweets, 404s 2022-07-15 15:59:24 -04:00
dangered wolf
c45814c092
Fallback gracefully if guest token API doesnt work 2022-07-15 15:05:19 -04:00
dangered wolf
753535d366
Retry if guest token or conversation load fails 2022-07-15 14:40:52 -04:00
dangered wolf
99a949a801
Fixed typo in comment 2022-07-15 12:59:19 -04:00
dangered wolf
824e44d4ed
Ran Prettier again 2022-07-14 13:51:59 -04:00
dangered wolf
568dd0e70b
Fetch now returns TimelineBlobPartial 2022-07-14 13:50:09 -04:00
dangered wolf
9cb2753747
Added comments and fixes 2022-07-14 12:47:09 -04:00
dangered wolf
0f551437af
Moved drivers/guest to fetch 2022-07-14 11:55:45 -04:00
Renamed from src/drivers/guest.ts (Browse further)