Commit graph

3294 commits

Author SHA1 Message Date
Alex Gleason
70f8698e33
Upgrade @nostrify/db to v0.37.2 2025-02-02 21:41:35 -06:00
Alex Gleason
ffe49b3648
getIdsBySearch: fix joining txt tokens 2025-02-02 21:39:49 -06:00
Alex Gleason
0d718e28b4
Update getIdsBySearch to use the new search extensions column 2025-02-02 21:26:58 -06:00
Alex Gleason
4664aefa55
Remove the language column from the database, drop the default on search_ext 2025-02-02 21:06:30 -06:00
Alex Gleason
3edddb8dcc
Upgrade @nostrify/db 2025-02-02 20:40:36 -06:00
Alex Gleason
8693dd0e5d
Coerce only_media to a boolean again 2025-02-02 20:23:38 -06:00
Alex Gleason
83347df845
Fix video tag being incorrectly applied 2025-02-02 20:14:30 -06:00
Alex Gleason
3d221aa357 Merge branch 'feat-search-mime-type' into 'main'
feat: add mime_type column in nostr_events, add the NIP 50 search extensions: exact_mime_type, partial_mime_type, only_media

See merge request soapbox-pub/ditto!623
2025-02-03 01:46:54 +00:00
Alex Gleason
ad68946899
Fix defaultTo migration 2025-02-02 19:41:45 -06:00
Alex Gleason
f04ca2b6ff
Rework language and media columns to use Nostrify search_ext column 2025-02-02 19:32:43 -06:00
Alex Gleason
baad8821f5
Upgrade @nostrify/db 2025-02-02 17:47:34 -06:00
Alex Gleason
b4184631c3
Merge remote-tracking branch 'origin/main' into feat-search-mime-type 2025-02-02 17:47:10 -06:00
Alex Gleason
640e533dca
Add InternalRelay test 2025-02-01 11:59:38 -06:00
Alex Gleason
b7a1efe33c
localSuggestionsController: skip accounts without a profile 2025-01-30 21:56:45 -06:00
Alex Gleason
2dfde337cd
Fix localSuggestionsController 2025-01-30 21:53:45 -06:00
Alex Gleason
7f71f6f50c Merge branch 'local-suggested' into 'main'
Add local suggestions controller

See merge request soapbox-pub/ditto!631
2025-01-31 03:19:35 +00:00
Alex Gleason
99d52f8640
Add local suggestions controller 2025-01-30 21:16:38 -06:00
Alex Gleason
c3403ba724
Make AppController accept a path parameter 2025-01-30 21:03:42 -06:00
Alex Gleason
c83a2dba7e
Give requireSigner middleware the right type 2025-01-30 20:39:51 -06:00
P. Reis
8797963d8c refactor: remote import at the top 2025-01-30 20:35:46 -03:00
P. Reis
db6ac74702 feat: create and implement createNutzapInformationController 2025-01-30 20:26:24 -03:00
Alex Gleason
9ced9fb31d Merge branch 'cashu-wallet' into 'main'
feat: endpoint for creating NIP-60 wallet

Closes #289

See merge request soapbox-pub/ditto!629
2025-01-30 18:59:11 +00:00
P. Reis
6a34f8f6e5 fix: use zod array instead of zod set
https://github.com/colinhacks/zod/issues/3963
2025-01-30 11:07:15 -03:00
Alex Gleason
c6848b9ce2
Log events sent to our relay 2025-01-30 02:33:19 -06:00
Alex Gleason
2ac2a45350
Actually do log traces 2025-01-30 02:23:47 -06:00
Alex Gleason
38f5a12284
Log relay communication 2025-01-30 02:19:19 -06:00
Alex Gleason
b473898cef
Upgrade Logi 2025-01-30 01:43:57 -06:00
P. Reis
d19b925db0 fix: get first event from query 2025-01-29 20:44:34 -03:00
P. Reis
d5ff66a542 feat: endpoint for creating NIP-60 wallet 2025-01-29 20:41:22 -03:00
Alex Gleason
8f4ae833ca
logi: message -> msg 2025-01-29 12:30:46 -06:00
Alex Gleason
449daf1e35
ditto.http.response: use error level when status >= 500 2025-01-29 10:06:21 -06:00
Alex Gleason
5f99bddb42
Add a logi custom handler for serializing non-JSON stuff (fix sql parameter serialization) 2025-01-28 19:37:45 -06:00
Alex Gleason
49735ce1fe
InstanceV2: bump max_media_attachments to 20 2025-01-28 14:57:32 -06:00
Alex Gleason
e31c58ac46 Merge branch 'last-kind7' into 'main'
EventsDB: index only the final `e` and `p` tag of kind 7 events

Closes #220

See merge request soapbox-pub/ditto!628
2025-01-28 20:24:23 +00:00
Alex Gleason
c7264d7627
Fix trends test 2025-01-28 14:22:16 -06:00
Alex Gleason
cce693dc9b
EventsDB: index only the final e and p tag of kind 7 events
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/220
2025-01-28 14:11:08 -06:00
Alex Gleason
55b338adea Merge branch 'ipwhitelist' into 'main'
Add IP_WHITELIST variable to bypass rate limiting

See merge request soapbox-pub/ditto!627
2025-01-28 17:41:44 +00:00
Alex Gleason
8deea54ec8
Add IP_WHITELIST variable to bypass rate limiting 2025-01-28 11:40:16 -06:00
Alex Gleason
7a2a6e00c1
Upgrade Logi 2025-01-27 21:38:11 -06:00
Alex Gleason
fd553d98e2
KyselyLogger: fix import order 2025-01-27 19:26:52 -06:00
Alex Gleason
5ea33f6817
KyselyLogger: improve parameter serialization 2025-01-27 19:26:26 -06:00
Alex Gleason
05c90fb677 Merge branch 'logi' into 'main'
Switch to JSON logging

See merge request soapbox-pub/ditto!626
2025-01-28 00:15:58 +00:00
Alex Gleason
78cde6dcb2
Fix import order in api/admin 2025-01-27 18:14:12 -06:00
Alex Gleason
d23990e709
Remove unused variable 2025-01-27 18:13:29 -06:00
Alex Gleason
2165e649bc
Remove Stickynotes, replace all occurrences of console.log with logi 2025-01-27 18:11:32 -06:00
Alex Gleason
2a6f954df1
Add logi, start using it in KyselyLogger 2025-01-27 15:49:43 -06:00
Alex Gleason
224d7bfef9
Add SyslogIdentifier=ditto to systemd unit 2025-01-27 11:27:57 -06:00
Alex Gleason
452088386c
Upgrade @nostrify/db 2025-01-25 17:53:38 -06:00
Alex Gleason
85d9e210d3 Merge branch 'limiter' into 'main'
relay: stricter rate limits

See merge request soapbox-pub/ditto!625
2025-01-25 21:45:06 +00:00
Alex Gleason
7601cfa430
Don't throw inside the websocket callbacks because that crashes the whole application 2025-01-25 15:37:09 -06:00