186 Commits

Author SHA1 Message Date
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
2078eb8026 Add rendering of Spaces 2023-08-18 19:01:58 -03:00
a12dcae4e4 Add helper function to format Space duration 2023-08-18 18:59:15 -03:00
c454162d7d Fix lint error 2023-08-18 16:42:25 -03:00
ff11fdf1af Make quoted tweets not suck anymore 2023-08-18 16:41:12 -03:00
57b72549c5 Add helper functions for rendering polls 2023-08-18 14:52:54 -03:00
fd0c625de5 Optimize Timeline query by splitting it into sub-queries so it can use indexes 2023-08-17 18:21:26 -03:00
d10445813c Add helper IsEnd function 2023-08-17 16:12:10 -03:00
107d21b7e6 Add retweet indicator on tweets 2023-08-13 15:57:58 -03:00
2c8ef0b476 Fix user profile images 2023-08-13 15:55:04 -03:00
17084408f7 Implement user feed using cursors 2023-08-12 10:02:51 -03:00
5568a86651 Improve expressiveness of Cursor querying, and implement Offline Timeline 2023-08-11 20:56:30 -03:00
c3d52348fc Add user search 2023-08-11 02:08:04 -03:00
00e92165f2 Fix lint error 2023-08-11 01:45:41 -03:00
677eea9c22 Fix bug causing crash at bottom of a feed 2023-08-11 01:44:10 -03:00
be39d1ab03 Add cursor queries 2023-08-11 01:38:49 -03:00
02bc365add Add session management routes and pages ("/login", "/change-session")
- Also enable tweet fetching in TweetDetail handler if tweet is missing or not scraped
- Improve some UI stuff w/ more styles
- Enable HTMX page swapping in some places instead of full page loads
2023-08-10 12:36:28 -03:00
4a40f35ff6 Fix lint error 2023-08-09 15:36:36 -03:00
7d2f35be68 Make 'tweet not in database' a named error that can be checked for 2023-08-09 15:33:28 -03:00
bb6a7738ba Refactor parent thread SQL to use a CTE (one query rather than several) 2023-08-04 15:36:41 -03:00
3c3fd55991 Refactor reply-chain SQL to use CTEs and fix a bug where they were chaining to the wrong parent tweets 2023-08-04 13:10:46 -03:00
604d5b9ce2 REFACTOR: convert function comments to proper godoc
- also fix indentation in versions.go file
2023-08-03 00:47:43 -03:00
160be3f045 Add query for Tweet Detail view 2023-08-03 00:34:59 -03:00
c5c82a6a94 Fix lint error 2023-08-02 23:29:38 -03:00
315d872b52 Add sample data and build query to load a user feed 2023-08-02 23:25:13 -03:00
a061decd0f REFACTOR: Rename go module to 'gitlab.com/offline-twitter/twitter_offline_engine' in accordance with 'go get' conventions
- also restructure project to use a 'pkg' directory for reusable packages
2023-07-30 14:20:07 -03:00