Commit graph

3580 commits

Author SHA1 Message Date
Alex Gleason
f7c8024c2f Merge branch 'mint-cashu' into 'main'
Allow users to mint for new tokens (cashu)

See merge request soapbox-pub/ditto!666
2025-04-22 15:34:19 +00:00
P. Reis
9d375f4afe goose created files remove 2025-04-08 12:23:12 -03:00
P. Reis
fb7c57a1d0 Merge branch 'main' into mint-cashu
Conflicts:
	packages/ditto/interfaces/DittoEvent.ts
	packages/ditto/storages/hydrate.ts
2025-04-08 12:16:53 -03:00
P. Reis
aadc3079fa refactor: make GET wallet a bit faster 2025-04-08 12:14:47 -03:00
Alex Gleason
63ebad0412 Merge branch 'client-tag-improvements' into 'main'
Client tag improvements

See merge request soapbox-pub/ditto!733
2025-04-03 17:48:06 +00:00
Alex Gleason
1c2d7a6793
Index client addr in search extensions 2025-04-03 12:38:39 -05:00
Alex Gleason
621d92dcf6
Render "client" tags in statuses even if they don't have an application handler event 2025-04-03 12:31:10 -05:00
Alex Gleason
0abee76e38
nip89: add ["t", "ditto"] tag to application handler event 2025-04-03 12:29:58 -05:00
Alex Gleason
c425a9d39a
DittoPgStore: index "client" tag 2025-04-03 12:29:45 -05:00
Alex Gleason
be5c58c615 Merge branch 'client-tag' into 'main'
Support NIP-89 "client" tag

See merge request soapbox-pub/ditto!732
2025-04-02 01:38:12 +00:00
Alex Gleason
23eb531305
Render client tags 2025-04-01 20:26:05 -05:00
Alex Gleason
caf59f4078
Insert NIP-89 "client" tags when users post statuses 2025-04-01 19:49:31 -05:00
Alex Gleason
c8b1c2050b
Publish nip89 application handler on startup 2025-04-01 18:55:36 -05:00
Alex Gleason
b56fe678f2 Merge branch 'fix-close' into 'main'
Fix relay always sending a CLOSED message after the client sends CLOSE

See merge request soapbox-pub/ditto!730
2025-03-28 22:53:05 +00:00
Alex Gleason
8dc9ea98e2
Fix relay always sending a CLOSED message after the client sends CLOSE 2025-03-28 17:50:51 -05:00
Alex Gleason
98c967dd22 Merge branch 'goosehints' into 'main'
Add .goosehints file

See merge request soapbox-pub/ditto!729
2025-03-28 21:24:08 +00:00
Alex Gleason
1a6c114a57
Fix inline codeblock in .goosehints 2025-03-28 16:22:03 -05:00
Alex Gleason
34a29c8f4e
NIP-11 improvements 2025-03-28 16:15:20 -05:00
Alex Gleason
278e13a6ef
Add .goosehints file 2025-03-28 16:08:28 -05:00
P. Reis
69fe86890f feat: add accepts_zaps_cashu boolean field to DittoEvent and hydrate it 2025-03-27 09:48:29 -03:00
P. Reis
8a75f9e944 feat: implement GET statuses/:id{[0-9a-f]{64}}/nutzapped_by (with tests) 2025-03-26 15:55:59 -03:00
P. Reis
71a558a9de Merge branch 'main' into mint-cashu 2025-03-25 18:23:13 -03:00
P. Reis
cda5196007 fix: remove unused import 2025-03-25 18:22:51 -03:00
P. Reis
7dc56f594b feat: add zaps_amount_cashu to event_stats (with tests)
add zapped_cashu and zaps_amount_cashu field to MastodonStatus
2025-03-25 18:19:40 -03:00
P. Reis
83c96c88b7 feat: support pagination in GET transactions
remove getTransactions function and replace it with renderTransaction function (all tests updated)
2025-03-24 23:02:04 -03:00
Alex Gleason
95c10fd2b9 Merge branch 'fix-nip05-notification' into 'main'
Fix name grant notification not being rendered

See merge request soapbox-pub/ditto!728
2025-03-23 17:15:59 +00:00
Alex Gleason
06c9c8d898
Fix name grant notification not being rendered 2025-03-23 12:11:39 -05:00
Alex Gleason
1ff83212c4 Merge branch 'fix-index-k-tag' into 'main'
fix: index k tag even if the value is not a number and count is less than 3

See merge request soapbox-pub/ditto!727
2025-03-21 20:59:27 +00:00
P. Reis
4451aafadc fix: index k tag even if the value is not a number and count is less than 3 2025-03-21 16:56:24 -03:00
P. Reis
1360484ae9 fix: call paginationSchema as a function 2025-03-21 10:49:58 -03:00
P. Reis
0b8b9e726a Merge branch 'main' into mint-cashu 2025-03-21 10:47:49 -03:00
P. Reis
7226d503f5 fix(getTransactions): coerce tags to string in schema
This is not really needed but it doesn't hurt
2025-03-21 10:09:38 -03:00
P. Reis
d69854fa3c fix: save amount tag value as a string 2025-03-21 10:07:34 -03:00
P. Reis
f9c4ec5835 feat: create GET transactions endpoint (with tests) 2025-03-20 14:02:43 -03:00
Alex Gleason
fab34dbf5b Merge branch 'fix-mem-leak' into 'main'
Fix memory leak in relay?

See merge request soapbox-pub/ditto!726
2025-03-19 20:20:13 +00:00
Alex Gleason
8fc0092150
Fix memory leak in relay? 2025-03-19 15:15:44 -05:00
P. Reis
06ac326ec3 refactor: add relay of conf.relay in case no relays are present 2025-03-19 13:01:06 -03:00
P. Reis
feff31f094 feat: allow to edit the wallet mints and relays (with tests updated) 2025-03-18 18:30:52 -03:00
P. Reis
7c1297e865 fix: remove unused import 2025-03-17 22:48:43 -03:00
P. Reis
46ab6005d1 fix: https://jsr.io/go/slow-type-missing-explicit-type 2025-03-17 22:47:38 -03:00
P. Reis
5ff8bf4479 refactor: remove useless comments 2025-03-17 22:41:36 -03:00
P. Reis
355c53fd64 refactor: create getWallet function, with tests 2025-03-17 22:28:36 -03:00
P. Reis
07d0d4c4e5 fix: only create kind 5 if there are events to delete 2025-03-17 11:12:30 -03:00
P. Reis
c344cb6b74 refactor: call organizeProofs in a try-catch block 2025-03-17 11:10:08 -03:00
P. Reis
6afa0bb7f1 refactor: simplify deletion of expired quote ids expiredQuoteIds 2025-03-17 11:01:11 -03:00
Alex Gleason
497b02002e
streaming: ensure close handler is called even when socket is closed by server 2025-03-16 18:02:28 -05:00
Alex Gleason
f27609feb8
Set a max subscriptions size per connection 2025-03-16 17:51:07 -05:00
P. Reis
0a05dd232c fix: only create new kind 7375 if there is proofs to keep 2025-03-15 20:48:33 -03:00
P. Reis
a719c2aabf fix: add swapNutzapsMiddleware to nutzap endpoint 2025-03-15 20:33:01 -03:00
P. Reis
0e0166419e test(nutzap): add more checks 2025-03-15 20:32:20 -03:00