Commit graph

182 commits

Author SHA1 Message Date
Alex Gleason
a14515bbe0
Rework reports with event sets 2024-06-08 19:48:56 -05:00
Alex Gleason
e5fadafc7a
Create AdminStore to filter out banned users 2024-06-08 12:58:59 -05:00
Alex Gleason
7d54a5c7d0
Kind 30361 -> 30382 2024-06-08 11:32:29 -05:00
P. Reis
b088276c51 fix: remove unused variable 2024-06-08 09:10:19 -03:00
Alex Gleason
fca7825bbf
EventsDB: replaceable deletions support 2024-06-07 22:11:17 -05:00
Alex Gleason
77ce26bf7a
Use last e-tag as reacted event 2024-06-06 11:25:24 -05:00
Alex Gleason
5c09034151
EventsDB: index the n-tag 2024-06-05 14:39:48 -05:00
Alex Gleason
c5c4f47bc2
Hide muted users from threads 2024-06-05 11:00:16 -05:00
Alex Gleason
e29375b070
Find quote ID in content 2024-06-04 17:46:11 -05:00
Alex Gleason
3092030dde
EventsDB: index "r" tags on labels 2024-06-03 00:18:52 -05:00
Alex Gleason
22c840092f
Add quotes count 2024-06-02 20:30:57 -05:00
Alex Gleason
a9dcebd7c2
Index r tags 2024-06-02 20:10:32 -05:00
Alex Gleason
76c882d836
Crunch the tag history in the controller 2024-06-02 17:47:36 -05:00
Alex Gleason
3dd25feddc
EventsDB: throw an error if since and until are too large 2024-05-31 13:33:53 -05:00
Alex Gleason
a15013e22a
Remove Optimizer and Reqmeister 2024-05-25 12:22:01 -05:00
Alex Gleason
1ffc1fc8f4
hydrate.bench: move the events variable above the bench 2024-05-25 10:49:09 -05:00
Alex Gleason
3c950fb4ba
Update assembleEvents bench with stats 2024-05-25 10:40:23 -05:00
Alex Gleason
14e5948394
Add assembleEvents bench 2024-05-25 10:33:23 -05:00
Alex Gleason
69ff568214
Stop recounting author stats constantly 2024-05-24 20:24:17 -05:00
Alex Gleason
250998405a
Rework database Conf to easily get the dialect 2024-05-24 20:07:38 -05:00
Alex Gleason
c6dea07ac3
Add back reactions_count column so trending can still work 2024-05-24 17:51:32 -05:00
Alex Gleason
f7c9a96719
Nuke the old stats module, support emoji reactions on posts 2024-05-24 17:40:51 -05:00
Alex Gleason
9839b8138f
tags.ts -> utils/tags.ts 2024-05-21 13:08:08 -05:00
Alex Gleason
f30aad11a5
Fix legacy quote posts 2024-05-21 13:04:23 -05:00
Alex Gleason
839c95f9a9 Merge branch 'refactor-test' into 'main'
Refactor EventsDB test to use eventFixture()

Closes #135

See merge request soapbox-pub/ditto!285
2024-05-20 17:51:52 +00:00
P. Reis
98fd4babce test(EventsDB): use eventFixture() 2024-05-20 14:46:53 -03:00
Alex Gleason
7b099ee565
EventsDB: don't index the user's bio for kind 0 events 2024-05-20 11:39:44 -05:00
Alex Gleason
bf479d0162
Move refreshAuthorStatsDebounced to stats.ts 2024-05-17 18:26:55 -05:00
Alex Gleason
5c2e3450a9
Refresh author stats: less naive way 2024-05-17 17:50:30 -05:00
Alex Gleason
251500fba1
Never let stats be less than 0 2024-05-17 11:39:21 -05:00
Alex Gleason
baa6986880
EventsDB: enable fts conditionally based on DATABASE_URL 2024-05-16 15:48:22 -05:00
Alex Gleason
031a3eac04
EventsDB.test: import order 2024-05-16 10:30:54 -05:00
Alex Gleason
4df2c7ba9c
Improve EventsDB error handling 2024-05-16 10:29:14 -05:00
Alex Gleason
2ede439005
Upgrade Nostrify to v0.19.1, fix phantom deletions 2024-05-16 09:29:53 -05:00
Alex Gleason
0acde23c46
Port 8000 -> 4036 in all the places 2024-05-16 08:08:36 -05:00
Alex Gleason
406baf8a1d
events-db -> EventsDB 2024-05-15 08:18:31 -05:00
Alex Gleason
ae0ec7be7e
EventsDB: remove DittoEvent dependency 2024-05-14 21:29:04 -05:00
Alex Gleason
221c41fdfa
EventsDB: make it a simple wrapper around NDatabase 2024-05-14 21:23:25 -05:00
Alex Gleason
b3985e740b
EventsDB: migrate tables to match NDatabase 2024-05-14 20:54:09 -05:00
Alex Gleason
f163af55d8
Remove deps-test.ts 2024-05-14 19:19:57 -05:00
Alex Gleason
a4226a963f
Rework Kysely db to be async 2024-05-14 18:44:42 -05:00
Alex Gleason
68b5887ed0
Don't let your memes be dreams 2024-05-14 18:24:34 -05:00
P. Reis
caaa7016f0 test(hydrate): refactor to import fixtures with 'eventFixture' function 2024-05-13 21:56:29 -03:00
P. Reis
78137f373f test(hydrate): kind 1984 2024-05-13 20:22:27 -03:00
Alex Gleason
d142ce618d Merge branch 'feat-create-mute-policy' into 'main'
Create MuteListPolicy

See merge request soapbox-pub/ditto!242
2024-05-10 21:35:13 +00:00
P. Reis
732cb45b1e test(UserStore): update with 100.00% code coverage 2024-05-10 18:20:00 -03:00
P. Reis
4fdf15761c refactor(UserStore): remove isMuted function 2024-05-10 18:18:55 -03:00
Alex Gleason
282612b53c
Add an eventFixture function to import fixtures in tests 2024-05-10 14:10:19 -05:00
P. Reis
26dd4606ed test: UserStore with 100.00% code coverage 2024-05-10 10:35:04 -03:00
P. Reis
0c0465f131 refactor(UserStore): move mute logic to separate function & create isMuted() function 2024-05-10 10:31:34 -03:00