Commit graph

3511 commits

Author SHA1 Message Date
Alex Gleason
c889cd68d2 Merge branch 'ditto-captcha' into 'main'
Add @ditto/captcha package

See merge request soapbox-pub/ditto!689
2025-02-26 21:14:25 +00:00
Alex Gleason
4b55acb796
Clean up captchaController 2025-02-26 15:10:41 -06:00
Alex Gleason
a2aaa55b89
Add tests to captcha modules 2025-02-26 15:09:01 -06:00
Alex Gleason
5f617b2d1a
Break captcha package into smaller modules 2025-02-26 14:53:13 -06:00
Alex Gleason
a2732642a5
Break @ditto/captcha into a separate library 2025-02-26 14:46:47 -06:00
Alex Gleason
4b321f21fc Merge branch 'refactor-remove-await' into 'main'
refactor: remove await

See merge request soapbox-pub/ditto!688
2025-02-26 14:30:54 +00:00
P. Reis
1730274e70 refactor: remove await 2025-02-26 11:19:15 -03:00
Alex Gleason
e17360d49c Merge branch 'fix-mentions-bug' into 'main'
fix: filter out invalid pubkeys

Closes #290

See merge request soapbox-pub/ditto!687
2025-02-25 23:26:22 +00:00
P. Reis
c82cfb9e8b refactor: remove duplicate filter 2025-02-25 20:16:28 -03:00
P. Reis
05a4a5a5c9 fix: filter out invalid pubkeys 2025-02-25 20:04:28 -03:00
Alex Gleason
73beef72ac Merge branch 'pool-whoops' into 'main'
Switch the pools, whoops

See merge request soapbox-pub/ditto!686
2025-02-24 14:51:55 +00:00
Alex Gleason
11a589fb01
Switch the pools, whoops 2025-02-24 08:50:06 -06:00
Alex Gleason
e78e0c2460
Upgrade Nostrify 2025-02-23 23:08:46 -06:00
Alex Gleason
40221410e8 Merge branch 'apistore' into 'main'
Replace pipeline with DittoAPIStore

See merge request soapbox-pub/ditto!685
2025-02-24 03:05:42 +00:00
Alex Gleason
9df50a5b0d
app.ts: minor variable name cleanup 2025-02-23 20:53:48 -06:00
Alex Gleason
751c09035c
Pass DittoAPIStore to MastoAPI endpoints, DittoRelayStore to /relay 2025-02-23 19:41:17 -06:00
Alex Gleason
cce78f2b0c
Make DittoAPIStore and DittoRelay separate things 2025-02-23 18:54:04 -06:00
Alex Gleason
52a9017730
Add a new DittoAPIStore extending DittoRelayStore 2025-02-23 18:03:41 -06:00
Alex Gleason
ec498653fb
Rename DittoAPIStore to DittoRelayStore 2025-02-23 18:02:45 -06:00
Alex Gleason
77c0ac3561
Hotfix for relay publishing 2025-02-23 14:55:19 -06:00
Alex Gleason
e88a7d01d4
Purify event before sending to pool 2025-02-23 14:50:45 -06:00
Alex Gleason
e99496306a
DittoAPIStore: fix handleEvent not being called 2025-02-23 13:08:19 -06:00
Alex Gleason
44f3721d36
DittoAPIStore: test that kind 0 with nip05 updates author_stats table 2025-02-23 12:41:59 -06:00
Alex Gleason
3f9f0468d2
Remove now unnecessary idleTimeout opt from socket upgrades 2025-02-23 12:05:53 -06:00
Alex Gleason
decb3ac618
Fix streaming API hydration ( ͡° ͜ʖ ͡°) 2025-02-23 11:56:29 -06:00
Alex Gleason
a52fe9fbc6
Try to fix pkey migration 2025-02-23 09:30:00 -06:00
Alex Gleason
02d4235abd
Rename nostr_events_new_pkey to nostr_events_pkey 2025-02-23 09:21:14 -06:00
Alex Gleason
497d5d12c9
Fix DittoPgStore tests 2025-02-23 00:39:41 -06:00
Alex Gleason
a9c696936b
Upgrade Nostrify 2025-02-23 00:11:42 -06:00
Alex Gleason
237f6e55ad
Fix DittoEnv type check 2025-02-22 21:52:26 -06:00
Alex Gleason
f1cb8c778a
Normalize Link header URLs 2025-02-22 21:45:04 -06:00
Alex Gleason
7f059b4dac
Fix event hydration with getEvent/getAuthor 2025-02-22 21:40:53 -06:00
Alex Gleason
6f1312b67f
Remove old paginationSchema 2025-02-22 21:38:48 -06:00
Alex Gleason
979f2cffb4
Fix stats:recompute script 2025-02-22 21:30:57 -06:00
Alex Gleason
1ae9da5793
Fix hydrate tests 2025-02-22 21:26:23 -06:00
Alex Gleason
6cd64500ce
Fix stats test 2025-02-22 21:24:43 -06:00
Alex Gleason
4f46a69131
I did a fucked up polymorphism 2025-02-22 20:56:53 -06:00
Alex Gleason
f893a81464
DittoAPIStore: add limit 0 2025-02-22 19:55:58 -06:00
Alex Gleason
70f0eb3b03
Fix pagination lint errors 2025-02-22 19:49:43 -06:00
Alex Gleason
f2e2072184
Export PolicyWorker as a regular class 2025-02-22 19:46:38 -06:00
Alex Gleason
3b17fd9b45
Remove @/storages.ts (jesus christ) 2025-02-22 19:27:53 -06:00
Alex Gleason
ca5c887705
Remove storages.ts from scripts 2025-02-22 15:54:31 -06:00
Alex Gleason
63c0f8b032
ditto/db: make adapters use classes instead of static classes 2025-02-22 15:32:47 -06:00
Alex Gleason
398d79b45e
DittoAPIStore: console.error -> logi 2025-02-22 13:05:50 -06:00
Alex Gleason
79fc568548
Add DittoPool class 2025-02-22 12:59:36 -06:00
Alex Gleason
2f0dbc44e4
Copy all the pipeline logic into DittoAPIStore (and some into DittoPgStore) 2025-02-22 12:01:50 -06:00
Alex Gleason
48bd7618f7
Start building DittoAPIStore 2025-02-22 03:13:05 -06:00
Alex Gleason
02e284f3aa
Remove unused DittoFilter interface 2025-02-22 01:06:53 -06:00
Alex Gleason
045eb4e1d6 Merge branch 'router' into 'main'
Switch to @ditto/router

See merge request soapbox-pub/ditto!683
2025-02-22 07:05:11 +00:00
Alex Gleason
4ed0640766
@ditto/router -> @ditto/mastoapi/router 2025-02-21 23:32:15 -06:00