Commit graph

315 commits

Author SHA1 Message Date
Siddharth Singh
e947e6d3f4
add more tests for policy edge cases 2025-05-07 08:49:21 +05:30
Siddharth Singh
e1d4a00a93
add close method to policyworker for testing purposes 2025-05-07 07:06:12 +05:30
Siddharth Singh
42f581d350
do not create a default policy spec in get controller 2025-05-06 19:24:13 +05:30
Siddharth Singh
aede53e9a9
always run custom policy 2025-04-12 03:04:20 +05:30
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
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
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
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
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
Siddharth Singh
28de904e8f
first working version of admin dashboard counts 2025-03-24 18:42:58 +05:30
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
Alex Gleason
8fc0092150
Fix memory leak in relay? 2025-03-19 15:15:44 -05: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
Alex Gleason
09b0bf8ef4
Test paginationSchema with a custom limit 2025-03-15 17:20:26 -05:00
Alex Gleason
88ef8087a5
Let paginationMiddleware be configurable, add pagination to reactions handler 2025-03-15 17:18:18 -05:00
Alex Gleason
36ffd4283a
Fix DittoPgStore req test 2025-03-15 17:03:20 -05:00
Alex Gleason
006a96d0eb
Disable notify in tests 2025-03-15 16:50:26 -05:00
Alex Gleason
66979c7c11
Disallow +/- emojis in Pleroma API 2025-03-15 16:42:34 -05:00
Alex Gleason
be922bf07f
Enable pleroma_custom_emoji_reactions feature in instance endpoint 2025-03-15 16:37:00 -05:00
Alex Gleason
753413f071
Support custom emoji reactions 2025-03-15 16:32:11 -05:00
Alex Gleason
c40c6e8b30
Support custom emoji reactions in event_stats 2025-03-15 15:31:24 -05:00
Alex Gleason
755ed884d4
Pleroma API supports custom emojis with or without colons 2025-03-15 15:01:07 -05:00
Alex Gleason
1dd50e2e63
Add tests for pleromaStatusesRoute 2025-03-15 14:38:19 -05:00