Zed
b290f6fd29
Optimize timeline data structure
2023-07-12 01:34:39 +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
6a7e56b613
Linting
2022-11-27 16:20:53 +01:00
Zed
78b6877b02
Add "Search (...)" to tab title
...
Fixes #247
2022-11-27 16:19:30 +01: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
Jules Bertholet
81ec41328d
Add redirect for thread links ( #647 )
2022-06-23 22:47:03 +02:00
HookedBehemoth
5e827c91aa
emit body and doctype on iframe embed endpoint ( #640 )
2022-06-16 18:46:41 +02:00
Zed
21e8f04fa4
Use strformat more
2022-06-04 02:18:26 +02:00
decoy-walrus
644fe41a08
Use the correct format string for fetching files from twitter.
...
Per their docs https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/entities#photo_format
2022-02-08 14:50:56 -05:00
decoy-walrus
4cdb8f78cb
Add new endpoint for original resolution images
...
This change is to work around the issue that chromium based browsers have handling the "name=orig" parameter appended to URLs. This parameter is needed to retrieve the full resolution image from twitter, but causes those browsers to fill in "jpg_name=orig" as the extension on the filename.
This change adds a new endpoint, "/pic/orig/<encoded media>". This new endpoint will internally fetch the URL with ":orig" appended on the end for the full res image. Externally, the endpoint will serve the image without the extra parameter to expose the real extension to the browser.
This new endpoint is used when rendering tweets with attached images. The old endpoint is still in place for all other proxied images, and for any legacy links.
I also updated the "?name=small" parameter to ":small" since that seems to be the new pattern for image sizing.
This should fix issue #458 .
2022-02-07 16:21:20 -05:00
Zed
8ecac89ea0
Fix hidePinned preference
2022-01-30 16:59:07 +01: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
c355beda85
Cleanup profile fetching logic
2022-01-23 08:17:41 +01:00
Zed
51ae076ea0
Rearchitect profile, support pins, Profile -> User
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
43b0bdc08a
Remove user agents
2022-01-17 04:13:27 +01:00
Zed
f3d6f53f6d
Rework profile cache behavior, fix suspended cache
...
Fixes #480
2022-01-16 20:32:45 +01:00
Zed
fcfc1ef497
Parse user stats as ints, not strings, cleanup
2022-01-16 03:32:18 +01:00
Mitarashi
eff098003f
unified function call styles
2022-01-14 20:45:02 +02:00
Mitarashi
aee222eb62
Merge branch 'embedded' of https://github.com/LainLayer/nitter into embedded
2022-01-14 20:36:06 +02:00
Mitarashi
d29186bf8f
stylistic changes
2022-01-14 20:35:01 +02:00
alqeeu
1e027f5edf
Update src/routes/embed.nim
...
Co-authored-by: Zed <zedeus@pm.me>
2022-01-14 20:33:01 +02:00
Mitarashi
ac0edc0a41
made twitter embed links redirect to nitter ones
2022-01-14 20:24:06 +02:00
Mitarashi
875a2c5387
moved themes to be handled in renderHead and changed path to /embed
2022-01-14 19:34:10 +02:00
Mitarashi
0d3469df66
changed code to be not shit
2022-01-14 19:01:47 +02:00
Mitarashi
7f15993a74
crude implementation of embedding tweets
2022-01-14 15:23:53 +02:00
Zed
0e5da8c305
Reimplement titleize without regex
2022-01-10 16:18:10 +01:00
Zed
63b9e8dbc1
Cleanup
2022-01-10 00:45:35 +01:00
Zed
db74fa8893
Remove capture group from titleization regex
2022-01-10 00:37:04 +01:00
Zed
c042c84203
Add auto theme that uses Twitter dark
...
Closes #332
2022-01-10 00:36:13 +01:00
Zed
8c2e0c66e2
Render markdown files with a tool
2022-01-09 23:35:56 +01:00
Zed
ffcac982d0
Style fixes
2022-01-06 03:57:14 +01:00
Zed
d4c6876bc9
Add more info to /.tokens endpoint
2022-01-06 00:42:18 +01:00
Zed
f9c9b0d3a4
Add /.tokens debug endpoint to see token pool
2022-01-05 22:49:16 +01:00
Zed
bb981df657
Improve and simplify preferences page behavior
2022-01-03 02:40:28 +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
d96550fcce
Minor code improvements
2021-12-30 04:18:40 +01:00
Zed
80f7bc0a02
Cleanup
2021-12-30 01:48:48 +01:00
Zed
b0a5e38b3f
Merge branch 'intent-userid'
2021-12-30 01:45:41 +01:00
Zed
ddc2be8439
Make gzip handling more robust
2021-12-30 01:39:00 +01:00
jackyzy823
52af6b2746
Implement user_id to screen_name router
2021-12-28 09:30:55 +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
2a40dd8059
Skip rail request if profile is protected
2021-12-26 05:02:57 +01:00
Zed
7af71ec480
Fix compiler warnings
2021-12-20 04:18:44 +01:00
decoy-walrus
15e1ba1322
Hack in support for the new twitter video format ( #381 )
...
This change adds ".m4s" and ".mp4" to the regex that modifies m3u8 playlist files proxied from twitter, and adds ".m4s" to the list of extensions proxied through nitter. The net effect is the new video format that twitter is using now should be supported.
2021-05-08 18:05:31 +02:00
Zed
e1b3e9db76
Add proper http support
...
Fixes #223
2021-01-08 02:36:06 +01:00
Zed
ed7ecf7c8d
Preload profile/tweet images, banners, and icons
2021-01-08 00:50:10 +01:00
Zed
384b0a2033
Fix profile caching logic to ignore empty profiles
2021-01-07 22:04:01 +01:00
Zed
320cb47bce
Switch to supersnappy, update frosty
2020-11-15 01:21:56 +01:00
Zed
1d0f95b79d
Fix card video preview
2020-11-09 21:24:34 +01:00
Zed
af634231b9
Support card previews
2020-11-09 21:20:33 +01:00
Zed
3107ab0ab8
Fix content-length crash
2020-11-07 23:02:27 +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
77da2e32c6
Use old api to optimize photo rails
2020-06-17 00:20:34 +02:00
Zed
6167e7dc49
Refactor fetch helper, fix list pagination
2020-06-15 16:44:14 +02:00
Zed
bd386b3acf
Proper support for gif avatars
...
Fixes #160
2020-06-10 18:34:56 +02:00
Zed
61d27efd69
Optimize profile caching strategy
2020-06-09 18:19:20 +02:00
Zed
db45433ec4
Optimize usage of cookie preferences
2020-06-09 16:45:21 +02:00
Zed
310c5e936d
Optional base64 support for proxy urls
2020-06-09 15:22:58 +02:00
Zed
40ef23956a
Catch connection closed errors
2020-06-07 08:23:05 +02:00
Zed
47c87f7068
Strip https://pbs.twimg.com from image urls
2020-06-07 07:55:57 +02:00
Zed
181ef3bca7
Use snappy for rss compression, refactor
2020-06-06 09:27:25 +02:00
Zed
68a5ac20b6
Proxy media instead of using file cache
2020-06-06 04:39:22 +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
b4fe3d1f6a
Prevent unnecessary profile cache
2020-06-03 00:03:41 +02:00
Zed
d01f62c5ae
Clean up cache code
2020-06-02 23:06:14 +02:00
Zed
7acea6b9e0
Add user agent for media requests, improve error
2020-06-02 20:27:43 +02:00
Zed
80d963fab6
Fix crash when disk is full
2020-06-02 19:58:24 +02:00
Zed
1cb57401b6
Ignore trailing slashes for list routes
2020-06-02 18:05:54 +02:00
Zed
4c928fa8b0
Routing updates
2020-06-02 18:05:54 +02:00
Zed
5eec0bde3d
Misc. fixes and refactorings
2020-06-02 18:05:54 +02:00
Zed
312ff78628
Store preferences in cookies, add config defaults
2020-05-08 02:48:47 +02:00
Zed
1bd48ea8ca
Fix timeline double requests due to templates
...
This one is a bit embarrassing..
2020-05-02 19:23:47 +02:00
Zed
9197c686d3
Fix multi-timeline infinite scroll, minor refactor
2020-05-02 19:22:43 +02:00
Zed
dc3c37b854
Fix renderReplies, take 2
2020-05-01 12:29:01 +02:00
Zed
c6215876fa
Implement proper infinite scroll for replies
...
Fixes #125
2020-04-29 18:10:17 +02:00
Zed
92b3ba057d
Fix trailing slash routing error
...
Fixes #146
2020-04-29 15:09:51 +02:00
Zed
8a6978cf74
Detect suspended accounts
2020-04-15 00:28:45 +02:00
Zed
240ce15651
Revert og:title for tweets
2020-03-29 23:20:00 +02:00
Zed
8a11b5a167
Add tweet page titles
...
Fixes #124
2020-03-29 09:15:05 +02:00
Zed
211cd5964a
Catch more httpclient exceptions
2020-03-09 00:17:13 +01:00
Zed
b03faccd45
Turn regex patterns into consts
2020-01-22 13:04:35 +01:00
Zed
ba57511a01
Add workaround for Twitter's layout A/B testing
...
Fixes #110
2020-01-19 08:34:32 +01:00
Zed
0924ea033d
Catch failed guest token exception
2020-01-10 18:20:16 +01:00
Zed
2c6d2897ae
Add experimental infinite scroll
2020-01-07 03:00:16 +01:00
Zed
2e97c1c98f
Refactor timeline route
2020-01-07 02:23:20 +01:00
Kadin Buckton
8bffb61e68
Implements OpenSearch support, closes #107
2020-01-03 09:57:36 -05:00
Zed
ee43d8cfb1
Catch SSL shutdown errors when closing clients
2020-01-01 17:24:24 +01:00
Zed
1aa1487402
Add t.co and /cards link resolvers
...
For t.co links: https://t.co/ .. -> nitter.net/t.co/..
For card links: https://cards.twitter.com/cards/ .. -> nitter.net/cards/...
2019-12-30 11:41:09 +01:00
Zed
d27ab68a90
Redirect /statuses/ to /status/
...
Fixes #105
2019-12-30 10:58:15 +01:00