Commit graph

49 commits

Author SHA1 Message Date
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
85316f8f8d Reduce usage of strformat, minor perf improvement 2022-11-27 15:50:08 +01:00
Zed
02557b67c3 Fix minor bug 2022-11-27 00:03:11 +01:00
Zed
21e8f04fa4 Use strformat more 2022-06-04 02:18:26 +02:00
Zed
f10519c41a Minor RSS behavior improvements 2022-01-27 14:55:51 +01:00
Zed
091bb6813d Move RSS compression to Redis module, fix crash 2022-01-27 14:36:12 +01:00
Zed
51ae076ea0 Rearchitect profile, support pins, Profile -> User 2022-01-23 07:23:09 +01:00
Zed
fcfc1ef497 Parse user stats as ints, not strings, cleanup 2022-01-16 03:32:18 +01:00
Zed
1ce6ff2b2f Improve search and list error messages 2021-12-30 23:48:57 +01:00
Zed
aed31b2269 Add slug-based list RSS endpoint for compatibility 2021-12-30 20:55:10 +01:00
jackyzy823
db090faf36 use separator in rss key for redis cache 2021-12-30 08:36:43 +01:00
jackyzy823
35bb5f9132 Rework list api 2021-12-30 08:36:43 +01:00
Zed
0a8fd2fce2 Improve enableRSS logic 2021-12-28 06:21:22 +01:00
Zed
73b5b60ac3 Add license headers
Closes #413
2021-12-27 02:37:38 +01:00
Zed
7af71ec480 Fix compiler warnings 2021-12-20 04:18:44 +01:00
Zed
e1b3e9db76 Add proper http support
Fixes #223
2021-01-08 02:36:06 +01:00
Zed
320cb47bce Switch to supersnappy, update frosty 2020-11-15 01:21:56 +01:00
Zed
bde3c3662d Silence some warnings 2020-06-22 03:50:16 +02:00
Zed
33f0ab0ba5 Always show retweets unless excluded in search 2020-06-17 14:12:38 +02:00
Zed
db45433ec4 Optimize usage of cookie preferences 2020-06-09 16:45:21 +02:00
Zed
181ef3bca7 Use snappy for rss compression, refactor 2020-06-06 09:27:25 +02:00
Zed
2fe0d8daae Fix wrong error message when rss timeline is empty 2020-06-05 16:49:30 +02:00
Zed
1fecd63d78 Skip photo rails for rss 2020-06-05 16:49:10 +02:00
Zed
2a654ea5cd Fix missing search params in rss cache 2020-06-05 16:29:22 +02:00
Zed
4c928fa8b0 Routing updates 2020-06-02 18:05:54 +02:00
Zed
9197c686d3 Fix multi-timeline infinite scroll, minor refactor 2020-05-02 19:22:43 +02:00
Zed
8a6978cf74 Detect suspended accounts 2020-04-15 00:28:45 +02:00
Zed
ba57511a01 Add workaround for Twitter's layout A/B testing
Fixes #110
2020-01-19 08:34:32 +01:00
Zed
d93a6691ef Router refactoring 2019-12-08 12:38:55 +01:00
Zed
f3aa28709a Support max_position for RSS feeds 2019-12-08 11:56:20 +01:00
Zed
7c35875fbf Support RSS for multi-timelines 2019-12-04 05:58:18 +01:00
Zed
5979d7f588 Refactoring 2019-10-23 09:03:15 +02:00
Zed
ffce6e21ab Use media endpoint for profile media tab
This bypasses "search" rate limits. It now includes media beyond
images and videos (eg. YouTube links are "media"), but the old
behaviour can be restored by clicking search, then filtering "Media"
and excluding retweets and replies.
2019-10-23 08:34:03 +02:00
Zed
6fb039dd79 Optimize RSS requests by disabling media fetching 2019-10-21 23:12:40 +02:00
Zed
a78eea9dce Fix 404 page 2019-10-21 07:59:22 +02:00
Zed
de62eedea5 Refactor hostname to be a runtime option
Add a `hostname` field under Server in your conf file, see the
updated nitter.conf in the repo for an example. The compile-time
option (-d:hostname) is no longer used.
2019-10-21 05:19:00 +02:00
Zed
e090dde1ea Use "tweets" instead of "custom" for search query 2019-10-08 13:54:20 +02:00
Zed
5013197b17 Change /replies to /with_replies for compatibility 2019-10-07 17:46:16 +02:00
Zed
ebb89edef6 Use custom 404 page, halt on 404 instead of resp 2019-10-07 16:47:53 +02:00
Zed
8fcdfa744a Fix crash when generating RSS for invalid user 2019-10-07 15:52:44 +02:00
Zed
8cae23dc7e Use "q" instead of "text" for search compatibility
Fixes #49
2019-09-30 22:24:01 +02:00
Zed
61991a9b56 Support RSS feeds for custom searches
Fixes #45
2019-09-28 03:22:46 +02:00
Zed
9e3138e51b Add list support 2019-09-21 01:08:30 +02:00
Zed
df3001ae95 Support rss for custom search 2019-09-20 03:35:27 +02:00
Zed
bd774cf0ca Make queries non-optional 2019-09-19 02:23:22 +02:00
Zed
4971491dfe Options cleanup 2019-09-18 20:54:07 +02:00
Zed
f707826241 Limit search length 2019-09-17 21:17:36 +02:00
Zed
6237460f77 Fix want-my-rss detection 2019-09-15 12:57:44 +02:00
Zed
36484c73fd Support RSS feeds for /media and /replies 2019-09-15 12:10:43 +02:00