Commit graph

154 commits

Author SHA1 Message Date
Zed
7af71ec480 Fix compiler warnings 2021-12-20 04:18:44 +01:00
alqeeu
89591b06bf
Fix user search parser (#483) 2021-12-19 21:28:13 +01:00
jackyzy823
68136de07b
add new card kind, and do not raise error for unknown card kind (#467) 2021-11-20 23:12:33 +01:00
Vítor
cf47c1b8ad
Handle withheld tweets (#429)
* Handle withheld tweets

* Fix format of parser.nim
2021-08-21 17:13:38 +02:00
SolitudeSF
cad75845db Fix compilation error with nim 1.4.0 2020-11-10 15:55:41 +01:00
SolitudeSF
48aa8d8e48 Replace spaces in list name 2020-11-10 15:54:08 +01:00
Zed
b6a49fc4cb Support quoted replies stat, update font 2020-11-08 02:21:58 +01:00
Zed
2d7e12fcb8 Fix parsing censored tweets 2020-11-07 22:48:49 +01:00
Zed
509e1dc5e8 Remove leftover from wip stuff 2020-11-07 22:48:30 +01:00
Zed
3bd0488c66 Add http pool to reduce connection overhead 2020-11-07 21:31:03 +01:00
Zed
06f7a8d95f Fix parsing "Show more" without digits 2020-10-01 22:08:25 +02:00
Zed
91f42c4c94 Nevermind. 2020-06-17 20:55:01 +02:00
Zed
51c7af082d We no longer know whether profiles are suspended 2020-06-17 17:19:08 +02:00
Zed
0e58c36bae Change user endpoint 2020-06-17 00:22:11 +02:00
Zed
77da2e32c6 Use old api to optimize photo rails 2020-06-17 00:20:34 +02:00
Zed
1811a23265 Parse alternative video title 2020-06-10 17:09:38 +02:00
Zed
179b3bc496 Parse video profile 2020-06-10 17:06:05 +02:00
Zed
0c9c37e886 Support even more obscure card types 2020-06-10 16:19:01 +02:00
Zed
47c87f7068 Strip https://pbs.twimg.com from image urls 2020-06-07 07:55:57 +02:00
Zed
ea7222bc86 Optimize photo rail parser 2020-06-07 07:54:20 +02:00
Zed
be74cec48a Refactor instruction parsing 2020-06-07 07:53:40 +02:00
Zed
1a9e5a6c72 Fix user search pagination 2020-06-05 00:11:05 +02:00
Zed
42421e58de Fix tweet ID parsing bug on 32-bit 2020-06-04 05:03:25 +02:00
Zed
85d972dc36 Add it back fully 2020-06-03 02:41:37 +02:00
Zed
4d650fd33e Support more cards, even the undocumented ones 2020-06-03 02:33:34 +02:00
Zed
fb591e43b8 Switch to packedjson to try lowering memory usage 2020-06-02 18:05:54 +02:00
Zed
2fa76db099 Simplify error parser 2020-06-02 18:05:54 +02:00
Zed
74534e8fef Use old user endpoint to avoid graphql rate limits 2020-06-02 18:05:54 +02:00
Zed
39863703b3 Error stuff 2020-06-02 18:05:54 +02:00
Zed
a2c0e1a21d Add missing tombstones 2020-06-02 18:05:54 +02:00
Zed
762d00b21d In with the new 2020-06-02 18:05:54 +02:00
Zed
4167ce458b Out with the old 2020-06-02 18:05:54 +02:00
Zed
c6215876fa Implement proper infinite scroll for replies
Fixes #125
2020-04-29 18:10:17 +02:00
Zed
8a6978cf74 Detect suspended accounts 2020-04-15 00:28:45 +02:00
Zed
5fc458638d Store profile usernames in lowercase for speedup 2020-03-09 00:12:42 +01:00
Zed
f8f4487c33 Support tweet locations 2019-12-21 05:44:58 +01:00
Zed
80d6191e74 Support media tags 2019-12-21 05:07:50 +01:00
Jason Francis
5576cbac8d Change ID types to int64 2019-12-09 18:39:12 -05:00
Zed
2e398c2c87 Include video ID in parser failure message 2019-12-08 19:48:11 +01:00
Zed
397471f8f4 Add button to show earlier thread replies 2019-12-06 06:03:50 +01:00
Zed
f19443ed96 Fix parsing promo_video_convo cards 2019-11-08 22:52:34 +01:00
Zed
02b206078d Don't export options from types 2019-10-26 15:34:30 +02:00
Zed
779187529c Strip list member bios 2019-10-23 09:05:35 +02:00
Zed
3218cc4069 Fix nil card url crash 2019-10-19 21:46:16 +02:00
Zed
1faf976d7c Use int for tweet ids for correct thread sorting 2019-10-10 18:22:14 +02:00
Zed
83a651e732 Link profile location to search query if available
Fixes #60
2019-10-08 23:25:59 +02:00
Zed
d8c8b6696a Linkify profile card website properly 2019-10-08 23:12:22 +02:00
Zed
e6f1e55c15 Refactor Thread -> Chain to nimsuggest errors 2019-10-08 20:47:45 +02:00
Zed
369dc994b8 Fix edgecase with nonexistent tweet not withheld 2019-10-08 15:17:37 +02:00
Zed
9038645bc1 Add support for loading more tweet replies 2019-09-24 15:39:04 +02:00
Zed
9e3138e51b Add list support 2019-09-21 01:08:30 +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
30bab22dae Add user search 2019-09-17 21:17:36 +02:00
Zed
12695b393e Fix pro/amp video parsing 2019-09-17 21:17:03 +02:00
Zed
9ff3ba2005 Show reasons for tweets being withheld
Fixes #33
2019-09-08 14:34:54 +02:00
Zed
f7c1c28368 Initial search refactoring 2019-08-23 02:15:25 +02:00
Zed
1e73a2f8bf Fix crash caused by "withheld" tweets 2019-08-20 22:44:11 +02:00
Zed
728a335f2c Show overlay for unavailable videos 2019-08-19 22:03:00 +02:00
Zed
60986ecc88 Display media count above photo rail 2019-08-11 23:24:02 +02:00
Zed
7171486f03 Revamp profile api to display more metadata 2019-08-11 21:30:31 +02:00
Zed
0359c72fda Remove unused imports 2019-08-11 21:26:37 +02:00
Zed
bfcb74c6cc Cache videos 2019-08-06 19:02:38 +02:00
Zed
27cf4cdf64 Support promo_video_website cards 2019-07-16 03:45:38 +02:00
Zed
0da076ddcf Fix card link parsing edge cases 2019-07-15 13:40:59 +02:00
Zed
d3a7ca834b Implement card fetching and parsing 2019-07-11 19:22:23 +02:00
Zed
ab36664ad2
Use Karax html rendering instead of source filters (#2)
* Use Karax html rendering instead of source filters
2019-07-11 00:42:31 +02:00
Zed
fad2575d93 Fix sensitive media being rendered as unavailable 2019-07-10 23:38:52 +02:00
Zed
344d3cd57f Reorder timeline tweets according to their threads 2019-07-04 14:55:28 +02:00
Zed
b708c78c42 Display unavailable quotes 2019-07-04 04:38:23 +02:00
Zed
141bfdc508 Add photo rail support 2019-07-04 04:27:06 +02:00
Zed
f235677024 Fix quote's "show thread" also shown in parent 2019-07-03 12:27:18 +02:00
Zed
13a9f6cd1f Add timeline filters
Custom filter menu is still WIP
2019-07-03 11:58:35 +02:00
Zed
92e3df411f Improve memory usage by making Thread a ref object 2019-07-03 07:19:08 +02:00
Zed
a67d27e0c4 Support "Replying to" and "Show thread" 2019-07-02 00:52:50 +02:00
Zed
97166feec9 Fix getLink typo 2019-07-01 23:55:19 +02:00
Zed
7ef10b88f4 Workaround for Twitter bug
For some reason, reply threads with only "unavailable" tweets get the tag
`ThreadedConversation--selfThread`, which is only meant to be used for replies
that are actually part of the thread you're viewing. To fix this we simply only
check "self" for the first reply.
2019-07-01 23:50:08 +02:00
Zed
3cedcf29ea Refactor tweet stats 2019-07-01 23:48:25 +02:00
Zed
c60280415e Minor retweet refactor 2019-07-01 23:22:00 +02:00
Zed
9b07199901 Generate tweet links 2019-07-01 23:14:36 +02:00
Zed
a901e50df5 Display "more replies" 2019-07-01 03:13:12 +02:00
Zed
1a0ccbb3f7 Add support for polls 2019-06-29 14:12:20 +02:00
Zed
ff01ab61d1 Add support for mp4 videos 2019-06-29 07:45:36 +02:00
Zed
b31338dcc7 Improve thread/timeline parsing 2019-06-29 06:31:02 +02:00
Zed
9dc4b240e7 Fix tweet tags being shown as unavailable tweets 2019-06-27 22:29:39 +02:00
Zed
e2039ec81c Refactor nil checks, remove getAttr 2019-06-27 21:07:29 +02:00
Zed
7d2fa15676 Improve tweet selectors 2019-06-26 19:59:28 +02:00
Zed
02fcd7b880 Switch from nimquery to q 2019-06-26 18:51:21 +02:00
Zed
13dc5efcf6 Add support for "vmap" videos 2019-06-25 07:39:08 +02:00
Zed
aae0e51154 Ensure correct text formatting 2019-06-25 04:52:38 +02:00
Zed
a098d3ea84 Add simple emoji support 2019-06-25 02:38:18 +02:00
Zed
2ee79e7970 Strip nbsp from account names 2019-06-24 22:55:37 +02:00
Zed
af9a5d4872 Render tweet quotes 2019-06-24 08:07:36 +02:00
Zed
861ac7a593 Better video/gif support 2019-06-24 05:14:14 +02:00
Zed
8f7c61eab6 Fix loading more tweets when last one is a retweet 2019-06-24 04:41:23 +02:00
Zed
2c2d2c767e description -> bio 2019-06-24 02:09:32 +02:00
Zed
de9e452a7c Add parser utils to parserutils.nim 2019-06-24 01:59:04 +02:00
Zed
3bd54f5df2 Small cleanup 2019-06-21 02:30:57 +02:00
Zed
abe21e3ebf Add fallback for sensitive profiles 2019-06-21 02:15:46 +02:00
Zed
7667371f5f Fix gif parsing 2019-06-20 22:46:15 +02:00