7dcb0ff84e
Fix chat messages/reactions breaking if you save the same one twice
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
3f1fcf6bcd
Tweak field names, add more 'db:...' tags to struct field names
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
fa9c913b53
Fix spaces with no created_by_id crashing the app
2023-11-05 14:45:25 -04:00
b6ada6371c
Fix up a bunch of lint errors and other stuff
2023-10-14 19:45:51 -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
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
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
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
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
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
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
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
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