35 Commits

Author SHA1 Message Date
815a8180da BUGFIX: don't clobber num_likes, num_retweets etc. if tweet is a stub
- Convert Tweet queries to sqlx, including new CommaSeparatedList type to convert Hashtags, Mentions and ReplyMentions
2023-06-03 08:30:49 -03:00
58c19df11a Add Space persistence queries for Space details 2022-11-24 19:08:00 -05:00
99ad0f4a2c Fix lint errors 2022-05-14 16:43:39 -07:00
cf7608eaa9 Save links to Spaces in a Tweet 2022-05-14 16:36:03 -07:00
3b6c970b74 Make Space test fixture semi-stable based on given ID 2022-05-14 16:31:53 -07:00
1b675e8200 Add db operations for Spaces 2022-05-14 16:04:09 -07:00
d1d80a91cd Add 'gofmt' linter 2022-03-13 17:13:40 -07:00
26ab9ec937 Create new Timestamp helper type 2022-03-06 18:09:43 -08:00
772fa247f7 Add creation of unknown users with known handles (i.e., deleted accounts) 2022-02-26 22:09:27 -08:00
b2199e9b59 Add Url#ShortText field 2022-02-01 15:48:43 -08:00
28e139a3e4 Add video durations and view counts 2021-12-24 16:26:34 -05:00
fbbb6834de Add video thumbnails 2021-12-23 15:12:01 -05:00
c1bcd54a11 Add Tweet#last_scraped_at and Tweet#is_conversation_scraped fields 2021-12-20 14:07:20 -05:00
28e44897b5 Add poll updating 2021-12-12 18:42:27 -08:00
c15ac9d751 Add persistence for polls 2021-12-12 16:42:32 -08:00
470dce1d27 Persist tombstone data 2021-11-06 13:37:46 -07:00
4fa30e246d Add dimension info to media content 2021-10-10 16:06:47 -07:00
100fe6c718 Fix gifs 2021-10-04 21:06:53 -07:00
6aa14c32e2 Add persistence for reply-mentions 2021-09-27 18:29:55 -07:00
05c3f2289b Add persistence for new Url type 2021-09-17 18:04:57 -07:00
1c67a9039d Add retweet queries 2021-08-16 20:37:35 -07:00
0a1fa92cdd Add to database: LocalPath version of BannerImage and ProfileImage on Users 2021-08-10 20:51:42 -07:00
d1ba8b48f3 Add RemoteURL and LocalFilename to Images, remove Filename 2021-08-05 14:22:16 -07:00
9c9100d874 Add RemoteURL and LocalFilename fields to Video, remove Filename 2021-08-05 14:10:46 -07:00
58dc223f84 Use VideoID given by the Twitter API instead of a rowid 2021-08-04 23:41:58 -07:00
c803794a0f Change TweetID to be an int64 instead of a string 2021-08-04 14:49:20 -07:00
529c181397 Fix build errors 2021-08-04 02:14:06 -07:00
d81fae0013 Make UserID an alias for int64 rather than string 2021-08-04 02:00:58 -07:00
7a81b71cd3 Use ImageID from the API rather than rowid 2021-08-04 01:23:55 -07:00
3893dda640 this should have been in previous commit 2021-08-02 17:18:28 -07:00
083f5f72e0 Add media queries 2021-08-01 15:52:04 -07:00
35cf1f1296 Create test fixtures (stable test objects) 2021-07-30 19:38:25 -07:00
81392996bb Add video and image types
- in addition to `Filename` (string), includes IsDownloaded (bool)
2021-07-26 17:26:39 -07:00
0c87428c44 Make videos their own table; store as a slice on Tweet rather than text field 2021-07-25 15:42:43 -07:00
7db981398c Create test utils file for fixtures and helper functions 2021-07-24 21:48:01 -07:00