Commit graph

3618 commits

Author SHA1 Message Date
Siddharth Singh
b29cc27858 Merge branch 'admin-dashboard-updates' into 'main'
Admin dashboard updates

See merge request soapbox-pub/ditto!731
2025-04-22 18:22:30 +00:00
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
Siddharth Singh
ca1c0a8240
lockfile updates 2025-04-12 03:04:31 +05:30
Siddharth Singh
aede53e9a9
always run custom policy 2025-04-12 03:04:20 +05:30
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
Siddharth Singh
3d1ece7ec8
whoops 2025-04-06 13:57:38 +05:30
Siddharth Singh
64fa718802
fmt 2025-04-06 13:52:45 +05:30
Siddharth Singh
7687d3dd7d
check policies when trying to store 2025-04-06 13:49:03 +05:30
Siddharth Singh
abe3c44891
store schemas alongside registry 2025-04-06 13:44:04 +05:30
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
Siddharth Singh
5a6e7c5a11
fix any types in parameters.ts 2025-04-03 19:06:04 +05:30
Siddharth Singh
deae57a16c
flesh out policy tests 2025-04-03 19:03:34 +05:30
Siddharth Singh
da0bac8c4d
add @std/path dep 2025-04-03 19:03:05 +05:30
Siddharth Singh
911c4f651c
add testpolicy fixture 2025-04-03 19:02:58 +05:30
Siddharth Singh
4ca16856b7
reorganize policies in order of compute intensity 2025-04-03 19:02:48 +05:30
Siddharth Singh
889d36c7d6
better logging for event policy 2025-04-03 18:38:44 +05:30
Siddharth Singh
adcaa207d9
no more any types 2025-04-03 18:36:04 +05:30
Siddharth Singh
3ace715498
fmt 2025-04-03 18:06:07 +05:30
Siddharth Singh
e533ec22b6
move policy registry into Ditto 2025-04-03 18:05:46 +05:30
Siddharth Singh
d17f117408
modified instancev1 controller sometimes returns string instead of number 2025-04-03 17:23:43 +05:30
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
Siddharth Singh
65c51c2293
fix failing note.ts test (?) not sure what's going on here 2025-04-01 14:12:09 +05:30
Siddharth Singh
f2a1968874
fix currentPolicyController schema error 2025-03-31 20:31:00 +05:30
Siddharth Singh
a64075b3eb
store default policy event in db if not found in controller, handle more errors in update route 2025-03-31 12:22:21 +05:30
Siddharth Singh
7cef2abf79
switch to gitlab nostrify so tests and stuff pass 2025-03-31 11:51:56 +05:30
Siddharth Singh
840a2052f5
authorpolicy and domainpolicy are really stupid to have on by default lol 2025-03-30 17:26:34 +05:30
Siddharth Singh
fa7756560a
move api routes to be under admin/ditto 2025-03-30 17:26:19 +05:30
Siddharth Singh
86b8ef03d6
not sure how i managed to do that... 2025-03-30 15:02:12 +05:30
Siddharth Singh
28a551b3f9
woops 2025-03-30 14:58:45 +05:30
Siddharth Singh
8de648a5c8
format all the thigns 2025-03-30 14:54:23 +05:30
Siddharth Singh
7acd7fe07b
create adminUpdatePolicyController 2025-03-30 14:52:32 +05:30
Siddharth Singh
ebbe2b86d9
handle errors during policy instantiation 2025-03-30 14:50:52 +05:30
Siddharth Singh
0589728b16
format all the things 2025-03-30 14:34:16 +05:30
Siddharth Singh
282748ec80
load custom policy from policy spec in worker 2025-03-30 14:28:39 +05:30
Siddharth Singh
70dba0c66b
only log custom policy path if we're actually using a script to load the policy 2025-03-30 14:28:13 +05:30
Siddharth Singh
7715d53ad5
rename "policy" to "spec" 2025-03-30 14:24:59 +05:30
Siddharth Singh
5e98bc65c0
clean up some confusing naming around policy specs 2025-03-30 14:22:52 +05:30
Siddharth Singh
72685f227b
PolicyRegistry need not be in app.ts at all 2025-03-30 14:02:57 +05:30
Siddharth Singh
b0036a3d28
add policyMode setting 2025-03-30 13:31:58 +05:30
Siddharth Singh
7cb643d1e4
add policy routes and publish default policy on startup 2025-03-30 13:31:51 +05:30
Siddharth Singh
dc9e45f133
add policyMode setting 2025-03-30 13:14:32 +05:30