Commit graph

706 commits

Author SHA1 Message Date
Alex Gleason
96fe8920cd
Make database timeouts configurable 2024-07-12 13:49:44 -05:00
Alex Gleason
5c6479b3fe
Rate-limit messages to the relay 2024-07-11 17:10:05 -05:00
Alex Gleason
92061c267e
Merge remote-tracking branch 'origin/main' into ws-limit 2024-07-11 17:02:00 -05:00
Alex Gleason
fa53dd7f8d
createStatusController: add relay hints
Fixes https://github.com/nostrability/nostrability/issues/52
2024-07-07 00:23:00 +01:00
Alex Gleason
842adfd72b
Improve signer timeout errors 2024-07-06 23:01:00 +01:00
Alex Gleason
d4713cae01
Move errorHandler to a separate file 2024-07-04 23:53:20 +01:00
Alex Gleason
3e7bab538a
Increase timeout for account statuses endpoint and feed endpoints 2024-07-02 20:13:44 +01:00
Alex Gleason
c7092f5d2d
Increase query timeout of feeds 2024-07-02 09:22:59 +01:00
Alex Gleason
fd769c125c Merge branch 'zapped-by-pagination-sort-amount' into 'main'
zapped_by: add pagination & sort amount

Closes #159

See merge request soapbox-pub/ditto!394
2024-07-02 05:17:11 +00:00
Alex Gleason
ae687bb525
Increase timeouts 2024-07-01 23:05:03 +01:00
Alex Gleason
3ae6d39ebc
Increase notifications endpoint timeout 2024-07-01 20:29:06 +01:00
Alex Gleason
092a20088a
Reduce timeouts 2024-07-01 09:18:42 +01:00
Alex Gleason
9ea6c7b00b
Add query timeouts 2024-06-29 22:26:51 +01:00
Alex Gleason
d7d14194d7
Collect database connections metrics 2024-06-24 22:01:01 -05:00
Alex Gleason
e6cd3d9e47
prometheus: add gauges for websocket connections 2024-06-24 09:23:26 -05:00
Alex Gleason
e0b1029953
prometheus: track relay messages by verb 2024-06-24 08:18:11 -05:00
P. Reis
3a8ade4de2 Merge branch 'main' into zapped-by-pagination-sort-amount 2024-06-23 18:49:56 -03:00
P. Reis
0d7ef68353 feat: add pagination and sort by amount - zapped_by endpoint 2024-06-23 13:38:40 -03:00
Alex Gleason
c44347e9d1
Fix relay metrics 2024-06-22 10:28:42 -05:00
Alex Gleason
31a5533fd7
Add Prometheus metrics 2024-06-21 22:38:25 -05:00
Alex Gleason
53e7e856c1
streamingController: bail early if limited 2024-06-20 16:20:18 -05:00
Alex Gleason
44dfd15502
streamingController: rate-limit with ttl-cache 2024-06-20 16:15:31 -05:00
Alex Gleason
766290bd45 accountStatusesController: fix oopsie whoopsie TypeError (gj TypeScript) 2024-06-20 05:59:41 +00:00
Alex Gleason
003d60c959
Don't display posts of disabled user on their profile 2024-06-19 14:06:02 -05:00
Alex Gleason
6ee9eb63d3
Get Ditto version from deno.json 2024-06-18 18:05:11 -05:00
Alex Gleason
335cb991d2
Add a few NIP-011 limitation fields 2024-06-18 17:49:52 -05:00
Alex Gleason
66abfa38c3
Upgrade hono, switch it to use JSR 2024-06-18 11:51:51 -05:00
P. Reis
8b67a05792 refactor: parse zap request with zod 2024-06-17 21:07:27 -03:00
P. Reis
bf017195a6 refactor: sort imports alphabetically 2024-06-17 20:15:51 -03:00
P. Reis
7a29c349e8 fix: get amount from zap receipt if not present in zap request 2024-06-17 14:51:12 -03:00
Alex Gleason
6ce8aae0d1
trends: rewrite getTrendingTags to process the history in serial, split across several queries 2024-06-15 18:14:38 -05:00
Alex Gleason
a3b7acd1c1
Cache trends API results at a different interval than trends calculations 2024-06-15 17:18:55 -05:00
Alex Gleason
9c640ca86b
Change verson to v1.0.0 2024-06-14 08:32:49 -05:00
Alex Gleason
d06cafd0dd
nameRequestController: prevent submitting the same name twice 2024-06-13 19:11:59 -05:00
Alex Gleason
5658c5db08 nameRequestsController: ids.size === 0 => !ids.size 2024-06-13 23:47:12 +00:00
Alex Gleason
100a5056eb
nameRequestsController: display only owned 3036 events 2024-06-13 18:42:59 -05:00
P. Reis
22dbddb5d3 refactor: zap amount parsed with zod, change zapped_by fields name 2024-06-13 14:21:01 -03:00
P. Reis
b43aed2301 feat: create zappedByController 2024-06-13 00:48:31 -03:00
Alex Gleason
4285763c9d
Add instance v2 controller 2024-06-12 19:47:26 -05:00
Alex Gleason
edddc5384c
Support OAuth "state" param 2024-06-12 18:04:04 -05:00
Alex Gleason
7dbd40a88b
Fix issues with adminAccountsController 2024-06-12 12:50:22 -05:00
Alex Gleason
c6da216b4e
trends: calculate since the last label date instead of current date 2024-06-11 19:08:24 -05:00
Alex Gleason
ddae4f408a
Support OAuth OOB 2024-06-11 13:40:09 -05:00
Alex Gleason
d1ba797c93
Add revoke_name admin action 2024-06-09 19:22:11 -05:00
Alex Gleason
229975a752
adminActionController: delete user's events on suspend 2024-06-09 18:50:45 -05:00
Alex Gleason
42fac52e9e
Support streaming notifications 2024-06-09 15:31:14 -05:00
Alex Gleason
2245263011
Add ditto:name_grant notification 2024-06-09 14:50:37 -05:00
Alex Gleason
07a380fb75
Rework adminAccountsController to display pending accounts from nip05 requests 2024-06-09 13:43:40 -05:00
Alex Gleason
5379863d36
Tag the nip05 request in the grant event 2024-06-09 12:13:50 -05:00
Alex Gleason
2a2f43d106
Add admin name approve/reject endpoints 2024-06-09 11:57:10 -05:00