Commit Graph

1605 Commits

Author SHA1 Message Date
Alex Gleason 171350a34d
Drop deleted_at column 2024-05-15 08:08:30 -05:00
Alex Gleason 137bd0dae0
adminAccountsController: fix type error with DittoEvent 2024-05-14 22:19:33 -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 998d0851df Merge branch 'ndb' into 'main'
EventsDB: migrate tables to match NDatabase

See merge request soapbox-pub/ditto!257
2024-05-15 02:02:52 +00:00
Alex Gleason 69108c0375
UnattachedMedia: point to new EventsDB tables 2024-05-14 20:58:29 -05:00
Alex Gleason b3985e740b
EventsDB: migrate tables to match NDatabase 2024-05-14 20:54:09 -05:00
Alex Gleason af9fb6aaa3
Sort imports of streaming.ts 2024-05-14 20:05:38 -05:00
Alex Gleason 91a7ebc634 Merge branch 'fix-blocked-users-in-streaming' into 'main'
Streaming API - Posts from blocked users does not show up in Global tab

Closes #109

See merge request soapbox-pub/ditto!250
2024-05-15 00:58:56 +00:00
Alex Gleason 64e7655b81 Merge branch 'recompute' into 'main'
Add stats:recompute script

See merge request soapbox-pub/ditto!254
2024-05-15 00:55:52 +00:00
P. Reis a1326dedcc fix(streaming): async storage 2024-05-14 21:53:50 -03:00
P. Reis 9e34838de8 Merge branch 'main' into fix-blocked-users-in-streaming
(((updating local branch)))
2024-05-14 21:51:53 -03:00
Alex Gleason b00ac8c768 Merge branch 'rm-deps-test' into 'main'
Remove deps-test.ts

See merge request soapbox-pub/ditto!256
2024-05-15 00:50:39 +00:00
P. Reis 0383726663 fix(streaming): use policy instead of hand coding 2024-05-14 21:44:19 -03:00
Alex Gleason 374dc3495c
Merge remote-tracking branch 'origin/main' into recompute 2024-05-14 19:43:50 -05:00
Alex Gleason f163af55d8
Remove deps-test.ts 2024-05-14 19:19:57 -05:00
Alex Gleason 31fc246526 Merge branch 'storages-async' into 'main'
Async Storages

See merge request soapbox-pub/ditto!255
2024-05-15 00:17:17 +00:00
P. Reis 4d342dff4a fix(streaming): move get muted users logic before upgrading connection to web socket 2024-05-14 21:14:00 -03:00
Alex Gleason 2fd50261f9
streaming: actually hydrate with optimizer 2024-05-14 19:11:38 -05:00
Alex Gleason 477ee8b124
Fix hydrateEvents in streaming 2024-05-14 19:09:25 -05:00
Alex Gleason d3a7f0849f
deno lint 2024-05-14 19:02:15 -05:00
Alex Gleason 3d1d56355d
Update scripts for async db 2024-05-14 18:51:35 -05:00
Alex Gleason 99a6c668c8
Update recompute script 2024-05-14 18:50:05 -05:00
Alex Gleason 47bc551e0b
Merge branch 'storages-async' into recompute 2024-05-14 18:48:26 -05:00
Alex Gleason b4d48218b8
Add missing nostr-relaypool import 2024-05-14 18:46:55 -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
Alex Gleason 08c9ee0670
Refactor client and firehose 2024-05-14 16:25:24 -05:00
Alex Gleason 3c706dc81b
Storages: make all methods async (total chaos and destruction) 2024-05-14 16:10:50 -05:00
Alex Gleason dc87d3599d
Add stats:recompute script 2024-05-14 15:59:17 -05:00
Alex Gleason 0a79ecb0a3 Merge branch 'stats-race' into 'main'
Update stats before storing event

See merge request soapbox-pub/ditto!253
2024-05-14 20:29:18 +00:00
Alex Gleason 7feecab723
stats: fix ambiguous column name error in Postgres? 2024-05-14 15:25:56 -05:00
Alex Gleason eef349f1e9
Update stats before storing event 2024-05-14 15:05:59 -05:00
Alex Gleason a3597edb90 Merge branch 'signer-middleware' into 'main'
Add a signerMiddleware, c.get('pubkey') -> c.get('signer')

See merge request soapbox-pub/ditto!251
2024-05-14 19:51:58 +00:00
Alex Gleason efa1c92044
Merge remote-tracking branch 'origin/main' into signer-middleware 2024-05-14 14:48:47 -05:00
Alex Gleason e53ea22274
Remove unused import 2024-05-14 14:48:37 -05:00
Alex Gleason f12bb4b643 Merge branch 'block-globally-muted-user-to-post' into 'main'
Do not allow deactivated accounts to post

Closes #118

See merge request soapbox-pub/ditto!245
2024-05-14 19:46:36 +00:00
Alex Gleason 46b5bbf841
Uppercase CustomPolicy 2024-05-14 14:39:48 -05:00
Alex Gleason ecfea827e1
Move RelayError into its own file, add helper methods 2024-05-14 14:38:38 -05:00
Alex Gleason 45b766af4d
Remove 'user' from AppContext 2024-05-14 14:24:48 -05:00
Alex Gleason a061c248bd
signerMiddleware: add debug log 2024-05-14 14:18:44 -05:00
Alex Gleason e5392f4d9e
Merge remote-tracking branch 'origin/main' into signer-middleware 2024-05-14 14:16:38 -05:00
Alex Gleason b5f0d2f0e6
docs/events: clean up User event kind 2024-05-14 14:12:43 -05:00
Alex Gleason dd3c64ef84
Remove accidentally checked in file 2024-05-14 13:09:16 -05:00
Alex Gleason 2f938ae42e Merge branch 'hydrate-test-kind-1984' into 'main'
Hydrate test: code coverage in kind 1984 & refactor to import fixtures in a dynamic way

Closes #125

See merge request soapbox-pub/ditto!249
2024-05-14 17:49:19 +00:00
P. Reis b626d75262 fix(streaming): posts from blocked users does not show up in global tab 2024-05-14 14:22:37 -03:00
Alex Gleason cd2a35d951
ConnectSigner: make getPublicKey used the stored value instead of actually hitting the relay 2024-05-14 12:20:36 -05:00
Alex Gleason 03182f8a5a
ConnectSigner: implement getRelays, support nprofile auth again 2024-05-14 12:14:27 -05:00
Alex Gleason 084143c5c8
Rename all middleware to thingMiddleware 2024-05-14 12:07:54 -05:00
Alex Gleason 1accae2222
Add a ConnectSigner to wrap our default opts to NConnectSigner, add c.set('signer') calls to nip98 middleware 2024-05-14 12:04:31 -05:00