75 Commits

Author SHA1 Message Date
99f6de9d45 Add UI queries for DMs 2023-11-12 13:04:02 -08:00
186cea5f1c REFACTOR: a bunch of miscellaneous spacing and formatting improvements 2023-11-12 12:53:56 -08:00
ef72de76e0 Rebase DMs, updating for rename of 'scraper' to 'pkg/scraper' 2023-11-07 15:04:47 -04:00
f0fcef68e0 Fix lint error 2023-11-07 15:04:47 -04:00
57500b0d30 Add command to fetch a user's DM inbox and hook it up 2023-11-07 15:04:47 -04:00
648bcd3406 Add test for adding a new reaction to a chat message 2023-11-07 15:04:47 -04:00
7dcb0ff84e Fix chat messages/reactions breaking if you save the same one twice 2023-11-07 15:04:47 -04:00
369616aeec Implement parsing of whole inbox state 2023-11-07 15:04:47 -04:00
7c25648cbf Add DB queries for DM chat messages and reactions
- also change reactions to be a map instead of a slice
2023-11-07 15:04:47 -04:00
891ce75479 Add queries for DM chat rooms and participants 2023-11-07 15:04:47 -04:00
1538605e23 Change DMChatRoom#Participants to a map instead of a slice 2023-11-07 15:04:47 -04:00
3f1fcf6bcd Tweak field names, add more 'db:...' tags to struct field names 2023-11-07 15:04:47 -04:00
616ff30a12 Add DM API response structures and parsing of DM objects 2023-11-07 15:04:47 -04:00
41fe27fa34 Tidy up SQL for new DM tables
- add "chat_" prefix to table names
- add "is_" prefix to names of boolean fields
- rename some fields for reasons of taste
- add "chat_room_participants" join table
2023-11-07 15:04:47 -04:00
~holmus-hiddyn
945923e226 Adds shell for DMs, reactions, and conversation 2023-11-07 15:04:47 -04:00
8079d44781 Extract list of User SQL fields to a constant 2023-11-07 12:10:24 -04:00
694a8e0bc5 Change "scrape" from a URL param to a query param
- create generic "refresh" button for User Feed that refreshes whichever tab you're on
- refactor TweetDetail view into multiple pieces for easier maintenance
- on "Already liked this tweet" error, save the Like instead of discarding it
2023-11-05 15:27:40 -04:00
fa9c913b53 Fix spaces with no created_by_id crashing the app 2023-11-05 14:45:25 -04:00
9448a84b28 Fix detection of deleted tweets 2023-10-23 13:48:38 -03:00
b6ada6371c Fix up a bunch of lint errors and other stuff 2023-10-14 19:45:51 -03:00
62f14856d6 Add parsing of edited tweets 2023-10-14 19:34:45 -03:00
9b85d81b89 Fix new video format and new user suspended format 2023-10-14 18:59:10 -03:00
5d6c40246c Move checking for parsing errors up a bit 2023-10-14 18:49:54 -03:00
63ddaaeafb Scraper now handles implicit tombstones like '"quoted_status_result": {}' 2023-10-14 18:02:31 -03:00
535f28c278 Enable search sort-orders 2023-10-14 15:06:50 -03:00
99ef17f820 Fix likes 'sort_order' being unique when '-1' is used as 'unknown' value 2023-10-13 17:55:40 -03:00
72df452401 Add "with replies", "without replies", "media" and "likes" tab to User Feed
- Also add UI option to scrape a user's Likes from their user profile
2023-10-13 17:47:13 -03:00
dc1bde2fe6 Implement 'likes sort order' for Likes tab 2023-10-12 15:34:24 -03:00
9aff2b8a93 Add search filters for 'media' (union of video and image) and negative search filters (prefixed with '-') 2023-10-12 10:30:33 -07:00
392e836689 Update URL parser to handle 'x.com' links 2023-10-09 19:40:34 -07:00
5bb65853da Fix a previous test that had a thread in it 2023-10-08 14:55:10 -07:00
4343ab7971 Include entire thread in tweet-detail query result 2023-10-08 14:42:42 -07:00
4c81846d15 BUGFIX: fix embedded links not being clickable
- also improve the display to show the domain name when other info is missing
2023-09-13 23:52:04 -07:00
34d3e16439 Update tombstone texts that will be parsed from the Twitter response to say Post instead of Tweet 2023-09-09 19:35:22 -03:00
162802914f Add a parameter to a Cursor to fetch a user's likes 2023-09-09 18:24:01 -03:00
14b9143f76 Compound db queries now fetch whether the tweet is liked by the current logged-in user 2023-09-04 13:11:58 -03:00
0b0f1a09f2 Make GetUserLikes respect the -n flag 2023-09-01 22:32:32 -03:00
78e33be780 Add function to delete a like 2023-09-01 22:19:43 -03:00
b2df94f041 Show tombstones 2023-08-29 12:27:53 -03:00
8aca7d4ebe Add manual re-scrape for user feeds and quote-tweets stat on tweets 2023-08-27 22:55:40 -03:00
655a47ec21 Remove debugging panic 2023-08-27 22:00:58 -03:00
8349ca4ae3 Add background scraping of the logged-in user's home timeline 2023-08-27 21:05:09 -03:00
eaa01a2360 Fix fetching users and search
- Add is_deleted field on Users
- Fix fetching of tombstoned users including deleted users
- Fix "verified" bluechecks not being scraped anymore
- Fix search to use new graphql endpoint (old one got taken down)
2023-08-22 20:07:32 -03:00
e09c97a85e Fix crashing on failing to parse the 'messageprompt' entry telling you to subscribe to twitter blue 2023-08-22 19:52:04 -03:00
e1b2968332 Add subcommand to fetch home timelines (both regular and 'for you') 2023-08-20 20:45:03 -03:00
466000f152 Add 'for you' option for HomeTimeline 2023-08-20 18:47:30 -03:00
4c91977e38 Add parsing of HomeTimeline (not For You) 2023-08-20 18:29:55 -03:00
fa33199489 Implement search query parsing (not yet hooked up to search bar) 2023-08-20 07:55:57 -03:00
7a750877f6 Fix spaces timestamps to remove the factor of 1000x 2023-08-19 22:36:50 -03:00
7f24bb7893 Add a lint check to close SQL resources (stmts and rows) 2023-08-19 16:12:46 -03:00