Commit Graph

  • 3769ca727f Remove logging of every object which is breaking the build and also very noisy Alessio 2023-08-18 19:08:03 -03:00
  • 2078eb8026 Add rendering of Spaces Alessio 2023-08-18 19:01:58 -03:00
  • a12dcae4e4 Add helper function to format Space duration Alessio 2023-08-18 18:59:15 -03:00
  • b805b3d1c4 Add lock icon for privated users; also make embedded links display better Alessio 2023-08-18 16:45:54 -03:00
  • 77f0db2e11 Fix test Alessio 2023-08-18 16:44:23 -03:00
  • c454162d7d Fix lint error Alessio 2023-08-18 16:42:25 -03:00
  • ff11fdf1af Make quoted tweets not suck anymore Alessio 2023-08-18 16:41:04 -03:00
  • 8c3823eea3 Add tests for tweet content rendering Alessio 2023-08-18 15:29:51 -03:00
  • 0f9ba6b19b Add polls and urls Alessio 2023-08-18 15:18:31 -03:00
  • 57b72549c5 Add helper functions for rendering polls Alessio 2023-08-18 14:52:54 -03:00
  • 0c533c632b Add videos Alessio 2023-08-17 18:45:55 -03:00
  • fd0c625de5 Optimize Timeline query by splitting it into sub-queries so it can use indexes Alessio 2023-08-17 18:21:22 -03:00
  • cb6a4b08e2 Fix lint error Alessio 2023-08-17 18:15:38 -03:00
  • 901e4dce0e Add following and unfollowing Alessio 2023-08-17 18:09:01 -03:00
  • d10445813c Add helper IsEnd function Alessio 2023-08-17 16:12:10 -03:00
  • d13956fe83 Add timeline include template Alessio 2023-08-17 14:22:40 -03:00
  • c717153fa1 Add Timeline template file Alessio 2023-08-17 14:20:23 -03:00
  • 99abd69c08 Fix lint error Alessio 2023-08-17 14:17:09 -03:00
  • 2f7ee34b98 Add Timeline Alessio 2023-08-17 14:14:32 -03:00
  • 832848478d Add buffered_render_tweet_htmx helper Alessio 2023-08-17 13:24:08 -03:00
  • a8955a3b5e Add pagination for user feed; add 'SetActiveUser' helper function for login handlers Alessio 2023-08-17 12:27:18 -03:00
  • f4e12172df REFACTOR: make the helper functions more useful Alessio 2023-08-16 20:22:09 -03:00
  • e1e581504f Fix error Alessio 2023-08-14 01:12:14 -03:00
  • 107d21b7e6 Add retweet indicator on tweets Alessio 2023-08-13 15:57:58 -03:00
  • 2c8ef0b476 Fix user profile images Alessio 2023-08-13 15:55:04 -03:00
  • cd1043215c Improve a bunch of styles, formatting and layout Alessio 2023-08-13 05:19:13 -03:00
  • b0a44063e4 Vendor the static assets (font, HTMX script) Alessio 2023-08-12 18:57:23 -03:00
  • 5c17546c7b Fix tweets being rendered without paragraph breaks Alessio 2023-08-12 11:14:06 -03:00
  • 17084408f7 Implement user feed using cursors Alessio 2023-08-12 10:02:51 -03:00
  • 5568a86651 Improve expressiveness of Cursor querying, and implement Offline Timeline Alessio 2023-08-11 20:56:30 -03:00
  • c3d52348fc Add user search Alessio 2023-08-11 02:08:04 -03:00
  • 00e92165f2 Fix lint error Alessio 2023-08-11 01:45:41 -03:00
  • 677eea9c22 Fix bug causing crash at bottom of a feed Alessio 2023-08-11 01:44:10 -03:00
  • be39d1ab03 Add cursor queries Alessio 2023-08-11 01:38:49 -03:00
  • 1e2668afbc Fix another lint error Alessio 2023-08-10 12:52:15 -03:00
  • 80445e03cb Fix lint errors Alessio 2023-08-10 12:48:46 -03:00
  • 02bc365add Add session management routes and pages ("/login", "/change-session") Alessio 2023-08-10 12:36:28 -03:00
  • 4a40f35ff6 Fix lint error Alessio 2023-08-09 15:36:36 -03:00
  • 7d2f35be68 Make 'tweet not in database' a named error that can be checked for Alessio 2023-08-09 15:32:50 -03:00
  • dcdec91d62 Add a ton of stuff to make everything look way better (no major behavior differences though) Alessio 2023-08-05 19:00:33 -03:00
  • bb6a7738ba Refactor parent thread SQL to use a CTE (one query rather than several) Alessio 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 Alessio 2023-08-04 13:10:46 -03:00
  • 9d3eacc256 Add a subcommand 'twitter webserver' to start the server Alessio 2023-08-03 13:15:39 -03:00
  • 8c09e2983b Update go.mod with new dependencies Alessio 2023-08-03 12:46:24 -03:00
  • 17423b34c1 Add the 'webserver' internal package with UserFeed and TweetDetail routes and templates Alessio 2023-08-03 12:43:17 -03:00
  • 604d5b9ce2 REFACTOR: convert function comments to proper godoc Alessio 2023-08-03 00:46:10 -03:00
  • 160be3f045 Add query for Tweet Detail view Alessio 2023-08-03 00:34:59 -03:00
  • 2a4e38d870 Disable integration tests for now Alessio 2023-08-02 23:36:38 -03:00
  • ac3f19b02a Add sample data to woodpecker build Alessio 2023-08-02 23:32:19 -03:00
  • c5c82a6a94 Fix lint error Alessio 2023-08-02 23:29:38 -03:00
  • 315d872b52 Add sample data and build query to load a user feed Alessio 2023-08-02 23:25:13 -03:00
  • f20f7f3b79 Fix path to test profiles directory Alessio 2023-07-30 14:27:35 -03:00
  • a061decd0f REFACTOR: Rename go module to 'gitlab.com/offline-twitter/twitter_offline_engine' in accordance with 'go get' conventions Alessio 2023-07-30 14:19:07 -03:00
  • c61d9fad1c Make Spaces fetch URL use a readable parameters structure Alessio 2023-06-27 23:00:42 -03:00
  • cae95ed99d REFACTOR: change all appropriate queries to use sqlx Alessio 2023-06-27 21:56:29 -03:00
  • 6e5e8dba67 Update CHANGELOG.txt for v0.3.2 Alessio 2023-06-26 15:33:29 -03:00
  • ffaec2799d When POSTing a 'like' to the API, save it as a Like in the db as well Alessio 2023-06-26 14:59:41 -03:00
  • a27f12a915 Add UserID to the API session Alessio 2023-06-06 22:48:42 -03:00
  • d06a42e2fc Add integration test for fetching Likes Alessio 2023-06-26 13:39:51 -03:00
  • fc17756a53 Add queries for Likes Alessio 2023-06-26 13:16:22 -03:00
  • d0ab385c52 Add Like model Alessio 2023-06-26 12:17:46 -03:00
  • 79a4b87f3a Add parsing of Likes feed Alessio 2023-06-26 12:16:38 -03:00
  • 3d7166c4aa BUGFIX: fix duplicate space participants error, making participants in a space unique Alessio 2023-06-25 22:53:49 -03:00
  • cc632e0654 Add commands to like and unlike tweets Alessio 2023-06-25 22:18:00 -03:00
  • d85259a014 REFACTOR: delete 'get_xyz_url' helper functions and put them inline in the respective functions Alessio 2023-06-24 13:57:42 -03:00
  • cce8cc1f7f Create structures for GraphQL request variables and features Alessio 2023-06-24 13:39:08 -03:00
  • bb53ab4730 Update CHANGELOG.txt for v0.3.1 Alessio 2023-06-22 17:26:20 -03:00
  • a58ebc6988 Add new type of TimelineTimelineModule, the 'profile-conversation' Alessio 2023-06-22 17:19:46 -03:00
  • 5c6e171ea3 Update CHANGELOG.txt for version 0.3.0 Alessio 2023-06-21 16:02:08 -03:00
  • f6692fa535 Fix some lint errors Alessio 2023-06-21 15:42:43 -03:00
  • d8b8aaea15 Fix a bug where replies to deleted accounts can fail to do proper reply-joining Alessio 2023-06-21 15:38:18 -03:00
  • a44323c5de Switch over Tweet Detail fetching to use APIv2 Alessio 2023-06-21 13:26:18 -03:00
  • eae3ebe3e7 When doing reply-joining of tombstones, ignore cursors and labels Alessio 2023-06-21 13:49:46 -03:00
  • 3dc9889725 Fetch tombstoned users that are partially re-assembled using reply-joining Alessio 2023-06-21 13:35:16 -03:00
  • 94e581cc0b Improve error messages in parsing of single tweets Alessio 2023-06-21 13:23:50 -03:00
  • 56d150d4ae Fix an integration test which broke because twitter removed a link thumbnail image Alessio 2023-06-21 13:10:59 -03:00
  • 5899732fa5 Do tombstoned user fetching for apiv2 Alessio 2023-06-21 12:25:42 -03:00
  • e06e7164cc Avoid crashing on tombstones in tweet detail replies Alessio 2023-06-20 13:48:06 -03:00
  • 459fbb4f2f Add recognition of other types of cursors on Tweet Detail page Alessio 2023-06-19 23:27:30 -03:00
  • 64bb8233f0 Avoid crashing on inline labels like 'More Replies' Alessio 2023-06-19 22:18:19 -03:00
  • 0a40dbe908 Avoid crashing on user-feed tombstone entries Alessio 2023-06-19 21:37:30 -03:00
  • 3340fc3da3 Create fake users for tombstones whose users can't be inferred Alessio 2023-06-19 21:25:20 -03:00
  • 0dd759ce54 Add joining of tombstone threads by in_reply_to_id Alessio 2023-06-18 12:04:11 -03:00
  • 0cc132c156 Create helper function to parse an APIV2Entry's ID field into a tweet ID and entry type Alessio 2023-06-17 23:24:32 -03:00
  • ad9e599ef9 Clean up a few tests to use assert and require instead of 'if ... { t.Errorf...' Alessio 2023-06-17 23:22:28 -03:00
  • c0f2624009 Add test file for previous commit Alessio 2023-06-17 15:22:39 -03:00
  • 1226e3947e Add parsing of tombstones in immediate parent replies in Tweet Detail views for APIv2 Alessio 2023-06-17 15:09:20 -03:00
  • 21581b325a Add support for parsing Tweet Detail in APIv2, including its unusual cursor format and conversation threads Alessio 2023-06-08 23:19:50 -03:00
  • 693831704d BUGFIX: spaces ended_at should be updated on saving now Alessio 2023-06-08 21:52:22 -03:00
  • b692d9f2fa Update CHANGELOG.txt for version 0.2.2 Alessio 2023-06-08 20:48:30 -03:00
  • d78f9c004d REFACTOR: use a switch statement to add clarity for parsing non-tweet timeline entries Alessio 2023-06-08 20:43:07 -03:00
  • 6192c37999 FIXUP: add test file for previous commit Alessio 2023-06-08 18:53:50 -03:00
  • 0868d8d6d8 Implement expandable ("Show more...") tweets Alessio 2023-06-08 18:51:50 -03:00
  • eb566c0612 FIXUP: add test file for previous commit Alessio 2023-06-08 18:10:55 -03:00
  • e4e05008d5 Add parsing of home-conversation entry types (mini-threads that show up in a feed) Alessio 2023-06-08 18:08:23 -03:00
  • 9a1ef814ef Add debug logging of requested URLs Alessio 2023-06-08 16:04:24 -03:00
  • 5c70d2cf49 Remove incorrect/redundant API type field Alessio 2023-06-08 14:22:04 -03:00
  • b36e7410c5 FIXUP: forgot this in the previous commit Alessio 2023-06-08 13:10:15 -03:00
  • a464aa8a98 REFACTOR: rename 'ParseTweetResponse' to 'ToTweetTrove' and put it in the api_types file Alessio 2023-06-08 13:08:46 -03:00
  • f7d383adf3 REFACTOR: move API types, requests and tests to their own 'api_types_spaces' files Alessio 2023-06-07 17:18:26 -03:00