Commit graph nitter/src/api.nim
Author SHA1 Message Date
Zed
8142bab1a9 Add Articles tab to profile pages
Fixes #1426
2026-08-24 23:06:48 +07:00
Zed
d8c1c98329 Use UserTweetsAndReplies for cookie sessions
Fixes #1425
2026-08-22 20:10:35 +07:00
Zed
11d4eb9e39 Deduplicate UserMedia requests for proxy caching
Fixes #1440
2026-08-22 08:33:33 +07:00
Zed
0ac9bc2678 Replace restricted UserResultByIdQuery endpoint
Fixes #1433
2026-08-17 06:30:18 +07:00
Zed
ccde22aa0b Use TweetResultByRestId for embeds 2026-08-08 23:00:19 +07:00
Zed
61246df9de Support Top, Latest, Media, and Lists search
Fixes #1335
2026-07-08 18:56:12 +02:00
Zed
2f07fa6151 Sort replies by relevance, recency, or likes
Fixes #1336
2026-07-08 00:11:52 +02:00
Zed
55a331cc50 Add followers and following pages
Fixes #187
2026-06-21 06:12:24 +02:00
Zed
db5a229bfe Add Twitter Spaces support
Fixes #459
2026-06-19 22:02:24 +02:00
Zed
44b2f096f6 Fix SSRF in /video proxy and API JSON injection
Validate the target host on the /video media route with
isTwitterUrl() (mirroring /pic) and reject non-http(s) schemes,
and stop the media proxy following redirects off the validated
host. JSON-escape user-controlled GraphQL cursors and build id
variables with packedjson so untrusted input can't break out of
the query. Warn on startup when the insecure default hmacKey is
in use.

Fixes #1411
2026-06-18 15:01:48 +02:00
Zed
7b27c2c629 Add support for Communities
Fixes #1270
2026-06-18 13:32:20 +02:00
Zed
35882ed88d Add Twitter Article rendering
Fixes #646
2026-06-16 15:47:13 +02:00
Zed
ac2f93b361 Add skipTid field for cookie session TID handling 2026-06-10 06:20:05 +02:00
Zed
e4e6dd13e6 Update API endpoints 2026-06-05 22:26:46 +02:00
Zed
8114eefa19 Add support for broadcasts
Fixes #303
2026-03-31 07:28:45 +02:00
Zed
e7e7050c6e Add support for viewing account info
Fixes #1381
2026-03-30 00:58:02 +02:00
Zed
7ce29bd8f1 Add new media grid and gallery views
Fixes #199
Fixes #1342
2026-03-15 09:31:55 +01:00
Zed
91ff936cb3 Add workaround for broken "until" search filter
Fixes #1372
2026-03-14 04:04:18 +01:00
Zed
4bf3df94f8 Fix segfault 2026-03-04 17:27:15 +01:00
Zed
2898efab6b Fix search repeating when the end has been reached 2026-03-04 11:56:53 +01:00
Zed
a15d1ce16b Add full support for tweet edit history
Fixes #700
2026-02-16 00:52:17 +01:00
Zed
4b9aec6fde Use graphTweet for cookie sessions for now 2025-11-30 02:57:34 +01:00
Zed
31d210ca47
Add experimental x-client-transaction-id support (#1324)
* Add experimental x-client-transaction-id support

* Remove broken test
2025-11-29 01:13:08 +01:00
Zed
b83227aaf5 Implement temp fix for cookie sessions
Fixes #1319
2025-11-26 01:03:27 +01:00
Zed
b0d9c1d51a Update endpoints, fix parser, remove quotes stat 2025-11-22 21:29:36 +01:00
Zed
886f2d2a45 Bump API versions, use more SessionAwareUrls 2025-11-17 11:00:38 +01:00
Zed
68fc7b71c8 Fix media support for cookie sessions
Fixes #1304
2025-11-16 23:22:21 +01:00
Zed
19569bb19f Replace old v1 photo rail API with gql 2025-02-05 00:25:50 +01:00
LS
735b30c2da
fix(nitter): add graphql user search (#1047)
* fix(nitter): add graphql user search

* fix(nitter): rm gitignore 2nd guest_accounts

* fix(nitter): keep query from user search in result. remove personal mods

* fix(nitter): removce useless line gitignore
2023-10-30 12:13:06 +00:00
Zed
88b005c9da Revert "Switch to using typeahead for user search"
This reverts commit a3e11e3272.
2023-08-23 19:31:40 +02:00
Zed
a3e11e3272 Switch to using typeahead for user search 2023-08-23 10:14:44 +02:00
Zed
8df5256c1d Switch back to old user search endpoint 2023-08-22 04:33:14 +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
cc5841df30 Use old timeline endpoint 2023-07-21 18:56:39 +02:00
Zed
67203a431d Add back search 2023-07-12 03:37:44 +02:00
Zed
0bc3c153d9
Fix everything (#927)
* Switch bearer token and endpoints, update parser

* Enable user search, disable tweet search

* Disable multi-user timelines for now

* Fix parsing of pinned tombstone
2023-07-10 11:25:34 +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
670a3bca6e Revert "Revert "Replace tweet endpoint with GraphQL""
This reverts commit 36c72f9860.
2023-02-24 01:01:22 +01:00
Zed
36c72f9860 Revert "Replace tweet endpoint with GraphQL"
This reverts commit 19adc658c3.
2023-02-02 12:38:58 +01:00
Zed
19adc658c3 Replace tweet endpoint with GraphQL 2023-02-02 12:31:49 +01:00
Zed
ff61d97a1d Optimize profile fetching and caching 2023-01-20 04:55:42 +01:00
jackyzy823
9b97ddc8d8 Fix list members not displaying 2022-03-10 21:24:57 +08:00
Zed
3a076a9b4e Add experimental parser module 2022-01-26 21:05:23 +01:00
Zed
4738ec3385 Add experimental user search parser 2022-01-26 20:56:05 +01:00
Zed
a54d6aa1eb Add experimental GraphQL list members parser 2022-01-26 18:04:01 +01:00
Zed
ae7091e69d Add experimental GraphQL user parser 2022-01-26 18:04:01 +01:00
Zed
27183f1a74 Use faster API to get pinned tweets 2022-01-23 07:45:01 +01:00
Zed
51ae076ea0 Rearchitect profile, support pins, Profile -> User 2022-01-23 07:23:09 +01:00