125 Commits

Author SHA1 Message Date
Alessio
c7a6b5b321 Add back in the GetUserByID unauthenticated operation since apparently it does actually work 2024-11-06 18:58:18 -08:00
Alessio
2b7a636720 Remove the unauthenticated GetUser requests as they no longer work 2024-11-06 18:36:06 -08:00
Alessio
b0cf2076e2 Make notifications paginated 2024-11-01 23:23:03 -07:00
Alessio
859431f012 Initialize database version number in schema.sql, instead of Go code 2024-10-23 22:00:38 -07:00
Alessio
74db0f5797 Remove sqlx mapper function; just map all fields manually 2024-10-23 21:50:54 -07:00
Alessio
3539d9418d SaveTweetTrove now re-fetches users with conflicting handles as well 2024-09-23 00:23:07 -07:00
Alessio
381e9e0706 'fetch_user' and 'fetch_user_by_id' subcommands now check for conflicting user handle errors and rescrape if needed 2024-09-22 22:11:08 -07:00
Alessio
6ed8beae26 Update SaveUser logic to account for duplicate handles, with better handling of deleted / banned users
- BUGFIX: deleted / banned users will no longer have all their other info wiped
	- e.g., follower counts, profile image URLs, bio, etc.
2024-09-22 16:22:33 -07:00
Alessio
79033cfc79 Make user handles only unique among active users 2024-09-17 18:33:58 -07:00
Alessio
51eaa2a0c4 Remove some useless functions ('list_followed', superceded by Lists; 'UserExists') 2024-09-17 18:13:54 -07:00
Alessio
2d35c37e17 Simply ErrNotInDatabase implementation 2024-09-15 17:47:51 -07:00
Alessio
526582d90c Fix lint error 2024-09-14 16:28:00 -07:00
Alessio
2731d787c2 Prevent failed SaveNotification transaction from locking the database 2024-09-14 16:01:28 -07:00
Alessio
72b547f6aa Unread notifications count should be specific to a single user 2024-09-02 16:25:54 -07:00
Alessio
9c7174a84a Add way to scrape unread count; add db query to count unread notifs since a given sort index 2024-09-02 15:02:27 -07:00
Alessio
1f392f5240 Fix lint error 2024-08-31 23:06:54 -07:00
Alessio
f554846355 Add sample notification data, and compound query to retrieve notifications and associated data 2024-08-31 23:04:13 -07:00
Alessio
0c620621a6 Add scraping notiication detail 2024-08-28 19:22:09 -07:00
Alessio
dc816c6f28 Track retweet lists in notifications alongside tweets 2024-08-28 19:20:29 -07:00
Alessio
2c7c35e23f Add pagination to notifications
- handle notifications end-of-feed
- add support for "quoted" and "mentioned" notifications
2024-08-26 00:07:10 -07:00
Alessio
b77612c66f Add SQL queries for notifications 2024-08-25 22:54:18 -07:00
Alessio
4853969b4d Fix lint error 2024-08-23 12:57:27 -07:00
Alessio
f3f0b4868d Update CHANGELOG.txt for v0.6.15 2024-08-23 12:52:16 -07:00
Alessio
e2ca9a975a Remove scraper singleton pattern entirely 2024-08-19 17:27:54 -07:00
Alessio
adbab97ca1 Reset the CI pipeline step conditions (don't force everything to run every time anymore) 2024-08-19 16:39:22 -07:00
Alessio
c52960759e Fix bug caused by DMTrove refactor 2024-07-28 13:23:10 -07:00
Alessio
cf58793b33 Fix error caused by previous commit in banner image download logic 2024-07-28 13:07:14 -07:00
Alessio
8aca12695b Handle media download 404s gracefully 2024-07-28 12:50:00 -07:00
Alessio
98015ddf0c REFACTOR: remove DMTrove type, merge it into TweetTrove 2024-07-28 08:01:58 -07:00
Alessio
a9a7af2195 Band-aid fix for spaces with null fields in them 2024-07-14 13:24:44 -07:00
Alessio
14a7f88cdb Add scraping and saving of bookmarks 2024-05-28 21:55:42 -07:00
Alessio
af3e496468 Add pagination to DM conversation and scrolling back using 'show more' button 2024-05-04 15:44:17 -07:00
Alessio
47dbd4fe42 Add template file for previous commit 2024-05-03 15:26:30 -07:00
Alessio
3fedde7aa5 Add unread messages notification indicator bubble in the nav sidebar 2024-04-28 15:21:39 -07:00
Alessio
0196cb681b Improve DM chat list previews
- add "unread" indicators
- message preview should now always say something, e.g., "So-and-so sent a Tweet" instead of being empty
2024-04-27 23:10:07 -07:00
Alessio
5c546bf308 Add query to list conversations with unread messages in them 2024-04-27 23:01:56 -07:00
Alessio
8b77185e6a Remove XXX lint blocker 2024-04-07 18:31:43 -07:00
Alessio
cc4da5e2a5 Create DM pagination function and reimplement 'GetChatRoomContents' using it 2024-04-07 18:24:32 -07:00
697c58e439 Add 'list:<id>' search filter 2024-03-26 20:19:17 -07:00
ea3aac52f8 Fix some typos 2024-03-24 20:12:40 -07:00
590a05edb7 Fix lint errors 2024-03-24 20:09:16 -07:00
0bc5a995ad REFACTOR: remove some redundant code in dm_queries.go 2024-03-24 20:02:40 -07:00
4e0efd8cf9 Add 'tombstone' search filter and search bar filter argument for 'followed_by' 2024-03-22 21:34:02 -07:00
41e525d223 Show pinned tweets in the web UI 2024-03-18 21:30:01 -07:00
cf51c065d0 Fix lint error 2024-03-18 20:49:25 -07:00
69e0a35e57 Handle HTTP request timeouts 2024-03-16 19:55:05 -07:00
087968c505 Fix typo 2024-03-16 18:30:28 -07:00
862c8a399e Fix name error 2024-03-11 21:16:19 -07:00
73c5803a47 Add downloading of DM embedded images, videos and links 2024-03-11 21:12:38 -07:00
aa05708e20 Move media downloader from persistence to scraper package; add 429 Rate Limited error type 2024-03-11 12:57:58 -07:00