Cynthia Foxwell
a6412968fe
mixed media in tweets, allow discord embeds to select shown media, ...more
...
- direct image linking (buggy if you try and do /photo or /video with no index
or slash)
- fix activitypub images not being images
- gross hack to tell discord to fetch a single image for fedi (broken for videos
lol, discord's media proxy is not activitystream spec compliant)
2025-04-09 19:54:13 -06:00
Cynthia Foxwell
c7d6b4291c
Fix tweets not loading
2025-03-20 11:42:34 -06:00
Cynthia Foxwell
be4c83bfb0
i tried my hardest to ratelimit myself locally and it didnt work so this code fixes ratelimit issues :)
2025-02-11 13:15:17 -07:00
Cynthia Foxwell
c9b2e94ba9
dont try to use guest tokens period
2025-01-28 18:19:16 -07:00
Cynthia Foxwell
29e4b240d6
restore old auth because it actually works as oauth from guest tokens is removed
2024-07-09 14:16:50 -06:00
taskylizard
af1d873de0
take into account authorizationError for skipping account
...
351337aade
2024-05-19 06:37:13 +00:00
taskylizard
4584932e4f
Pull from https://github.com/PrivacyDevel/nitter/pull/50
2024-05-19 05:39:08 +00:00
Zed
4120558649
Replace /.tokens with /.health and /.accounts
2023-10-31 12:04:32 +00:00
Zed
fcd74e8048
Retry rate limited requests with different account
2023-09-02 08:15:58 +02:00
Zed
82beb5da8c
Add empty oauth token logging
2023-08-31 01:31:27 +02:00
Zed
282ce8b0e9
Add 429 logging
2023-08-31 01:29:54 +02:00
Zed
898b19b92f
Improve rate limit handling, minor refactor
2023-08-30 03:10:21 +02:00
Zed
c3d9441370
Unify some guest account logs
2023-08-21 14:49:50 +02:00
Zed
e8b5cbef7b
Add missing limitedAt assignment
2023-08-20 12:31:08 +02:00
Zed
3d8858f0d8
Track rate limits, reset after 24 hours
2023-08-20 11:56:42 +02:00
Zed
3572dd7771
Replace tokens with guest accounts, swap endpoints
2023-08-19 00:25:14 +02:00
Zed
624394430c
Use legacy timeline/user endpoint for Tweets tab
2023-08-08 02:09:56 +02:00
Zed
50f821dbd8
Use search instead of old timeline endpoint
2023-07-22 03:22:13 +02:00
Zed
1ac389e7c7
GraphQL timeline ( #812 )
...
* Update deps
* Replace profile timeline with GraphQL endpoint
* Update GraphQL endpoint versions
* Use GraphQL for profile media tab
* Fix UserByRestId request
* Improve routing, fixes #814
* Fix token pool JSON
* Deduplicate GraphQL timeline endpoints
* Update list endpoints
* Use GraphQL for list tweets
* Remove debug leftover
* Replace old pinned tweet endpoint with GraphQL
* Validate tweet ID
* Minor token handling fix
* Hide US-only commerce cards
* Update config example
* Remove http pool and gzip from token pool
* Support tombstoned tweets in threads
* Retry GraphQL timeout errors
* Remove unnecessary 401 retry
* Remove broken timeout retry
* Update karax, use new bool attribute feature
* Update card test
* Fix odd edgecase with broken retweets
* Replace search endpoints, switch Bearer token
* Only parse user search if it's a list
* Fix quoted tweet crash
* Fix empty search query handling
* Fix invalid user search errors again
2023-04-21 14:41:30 +02:00
Zed
e2560dc1f1
Prevent search endpoint from discarding tokens
2023-04-21 01:01:18 +02:00
Zed
687447cea4
Only retry on 401 once
2022-12-19 10:07:24 +01:00
Zed
2ac3afa5b2
Retry intermittent 401 Unauthorized requests
2022-09-21 05:50:16 +02:00
Zed
4ffe7d7665
Fix compilation with Nim 1.4.8
2022-01-23 14:47:13 +01:00
Zed
f58824cb35
Add URL to request errors
2022-01-23 08:38:38 +01:00
Zed
79b98a8081
Simplify bad http client pruning
2022-01-23 07:23:09 +01:00
Zed
cdb4efadfe
Temporary fix to Twitter's global timeline error
2022-01-21 09:17:18 +01:00
Zed
e0b141daf9
Small optimization for photo rail request size
2022-01-17 03:21:38 +01:00
Zed
fff04de24b
Simplify new error handling
2022-01-16 18:28:40 +01:00
Zed
cdf49dcddd
Add experimental user parser
2022-01-16 06:01:13 +01:00
Zed
ffcac982d0
Style fixes
2022-01-06 03:57:14 +01:00
Zed
34964f9e56
Track pending token requests to limit concurrency
2022-01-05 23:52:45 +01:00
Zed
dd71e60f35
Track token rate limits per endpoint
2022-01-05 22:48:45 +01:00
Zed
74c4377198
More cleanup
2022-01-02 11:21:03 +01:00
Zed
ddc2be8439
Make gzip handling more robust
2021-12-30 01:39:00 +01:00
Zed
c09a8d87d9
Attempt to fix occasional cursor error
2021-12-28 08:18:44 +01:00
Zed
99d3c46af5
Improve API error handling
2021-12-28 05:41:41 +01:00
Zed
6bcbe0ea9f
Handle decompression errors
2021-12-28 05:13:47 +01:00
Zed
73b5b60ac3
Add license headers
...
Closes #413
2021-12-27 02:37:38 +01:00
Zed
3da6c50cb8
Use gzip for API calls to lower bandwidth and RAM
2021-12-26 06:49:27 +01:00
Zed
5b185c79de
Improve token management logic
2021-12-20 04:19:11 +01:00
Zed
df9f90f99c
Fix http pool usage to prevent rate limit error
2021-07-18 03:36:27 +02:00
Zed
4a38b270af
Don't release empty tokens
2021-01-25 11:07:29 +01:00
Zed
67142bea6a
Don't discard tokens on length errors
2021-01-25 11:04:36 +01:00
Zed
67e15bb492
Temporary (?) fix for false rate limits
2021-01-18 07:57:39 +01:00
Zed
51b1567af6
Improve token pool to prevent rate limits
2021-01-13 14:32:26 +01:00
Zed
4e1d213488
Show error page when rate limited
2021-01-07 22:31:29 +01:00
Zed
3bd0488c66
Add http pool to reduce connection overhead
2020-11-07 21:31:03 +01:00
Zed
514d1b3121
Add temporary token fail safe
2020-07-09 09:18:36 +02:00
Zed
77da2e32c6
Use old api to optimize photo rails
2020-06-17 00:20:34 +02:00
Zed
7e40af5611
Revert token change
2020-06-16 00:48:44 +02:00