Commit graph

240 commits

Author SHA1 Message Date
Alex Gleason
2165e649bc
Remove Stickynotes, replace all occurrences of console.log with logi 2025-01-27 18:11:32 -06:00
Alex Gleason
75be90694c
Always inject og metadata, but add generous cache headers 2025-01-25 01:42:20 -06:00
Alex Gleason
5dc840e14e
Avoid applying ratelimit to /packs 2025-01-24 04:27:56 -06:00
Alex Gleason
218604aa56
Move ratelimitMiddleware below metricsMiddleware, try adding a stricter ratelimit 2025-01-23 22:43:54 -06:00
Alex Gleason
8083148d03
Don't include ratelimit headers on the default bucket 2025-01-23 15:27:24 -06:00
Alex Gleason
afa0a337d3
Add a default cache-control header of no-store 2025-01-23 14:59:29 -06:00
Alex Gleason
871222ee4e
Add Cache-Control headers to a bunch of routes 2025-01-23 14:11:10 -06:00
Alex Gleason
66f7853c3b
Add cacheControlMiddleware 2025-01-23 13:04:40 -06:00
Alex Gleason
aa1515e7e9
Remove accidental HSTS header from packs/ route 2025-01-23 13:00:11 -06:00
Alex Gleason
281872b0ad
Add notActivityPub middleware to stop AP requests on /users/* 2025-01-21 18:41:04 -06:00
Alex Gleason
51981009c4
Add cache-control headers to /packs/* 2025-01-17 18:19:32 -06:00
Alex Gleason
b85513496c
Ratelimit follow and unfollow 2024-12-27 13:18:22 -06:00
Alex Gleason
54c398c5fa
Ratelimit /followers and /following endpoints 2024-12-27 13:16:33 -06:00
Alex Gleason
a316e92001
Bump limits slightly, also limit account statuses controller 2024-12-27 13:15:47 -06:00
Alex Gleason
eb10cdce76
Stricter timeline rate limits 2024-12-27 13:06:32 -06:00
Alex Gleason
7f02657306 Merge branch 'feat-set-kind-0-api' into 'main'
Create updateInstanceController endpoint (allow for setting the kind 0, screenshots go into kind 0 content)

Closes #259 and #257

See merge request soapbox-pub/ditto!577
2024-11-05 17:02:08 +00:00
Alex Gleason
e3aed99605
Let users host arbitrary .well-known paths 2024-11-04 17:23:30 -06:00
P. Reis
339b13c084 feat: create updateInstanceController
for now only update: title, description, screenshots (user must provide the image URL) and thumbnail (user must provide the image URL)
screenshots array is stored in the content of the kind 0 of the
2024-11-01 23:14:59 -03:00
Alex Gleason
b4b7381b49
Implement OAuth revoke endpoint 2024-10-17 14:20:42 -05:00
Alex Gleason
a7d8d86fa7
Add GET /api/v1/notifications/:id endpoint 2024-10-14 17:27:30 -05:00
Alex Gleason
4019099c57
Add endpoint to GET a push subscription 2024-10-14 15:48:55 -05:00
Alex Gleason
94cf3b2931
Add push controller test 2024-10-13 23:29:06 -05:00
Alex Gleason
b4e63afb8c
Merge remote-tracking branch 'origin/main' into push 2024-10-11 18:03:20 -05:00
Alex Gleason
d639d9a14d
Reorganize translation interfaces/files 2024-10-10 14:06:04 -05:00
Alex Gleason
df8004e261
Decrease rate limit of translations 2024-10-09 21:04:05 -05:00
P. Reis
cad0da2732 feat: rateLimit translate endpoint 2024-10-09 15:24:01 -03:00
P. Reis
57bbbb289b fix: types must have the type prefix
apparently happens in Deno 2.0?
2024-10-09 15:22:09 -03:00
P. Reis
01a16473ab Merge branch 'main' into translate-status 2024-10-07 15:02:47 -03:00
P. Reis
b369b2171d feat: create translateController - /api/v1/statuses/:id/translate 2024-10-07 15:02:04 -03:00
Alex Gleason
757b6c7e1c
Merge remote-tracking branch 'origin/main' into push 2024-10-06 15:51:50 -05:00
Alex Gleason
a2e8de6c36
Rate-limit the captcha endpoints 2024-10-04 16:48:24 -05:00
Alex Gleason
68c0d437ee
captcha: resize pieces, require nip98 auth 2024-10-04 13:34:12 -05:00
Alex Gleason
467a49bd40
Add captcha verify controller 2024-10-04 12:43:29 -05:00
Alex Gleason
e57dd8911c
captcha: don't do the encryption thing, just use a ttl cache 2024-10-04 12:07:12 -05:00
Alex Gleason
0bf41bc913
Use Pleroma's captcha endpoint (we basically match their return type) 2024-10-03 19:37:14 -05:00
Alex Gleason
f83ad0dbce
Add preliminary captcha controller 2024-10-03 19:23:22 -05:00
Alex Gleason
4561ec0d00
Store the Push Subscription in the database 2024-10-02 22:20:47 -05:00
Alex Gleason
bece384124
Add Web Push skeleton 2024-09-30 19:12:53 -05:00
Alex Gleason
64a6d7170c
Add initial webmanifest controller 2024-09-26 13:50:51 -05:00
Siddharth Singh
7e711aa8a8
updateMediaDescriptionController --> updateMediaController 2024-08-25 19:43:28 +05:30
Siddharth Singh
6ff90d63bb
implement PUT /api/v1/media/:id
Adds support for setting image descriptions for accessibility reasons
2024-08-25 16:23:25 +05:30
Alex Gleason
eb3b442dd4
Add more known frontend routes 2024-08-19 20:13:59 -05:00
Alex Gleason
443c8a43f7
Fix matching @ routes in app 2024-08-09 21:07:41 -05:00
Alex Gleason
349f59cc70
Merge remote-tracking branch 'origin/main' into opengraph-metadata 2024-08-07 18:19:13 -05:00
Alex Gleason
717fd6bdc9 Merge branch 'zap-tag-endpoint-by-id' into 'main'
Get zap split by post/status id, based in the zap tag

See merge request soapbox-pub/ditto!448
2024-08-07 17:36:09 +00:00
P. Reis
10052230e5 refactor: rename getZapSplitsOfStatusController to statusZapSplitsController 2024-08-07 14:24:32 -03:00
Alex Gleason
5d6ab9f63b
Separate listPagination 2024-08-06 19:04:27 -05:00
P. Reis
32cecb5e6b feat: create zap split endpoint based in post/status id 2024-08-06 20:55:40 -03:00
Alex Gleason
d285b7dced
Fix Mastodon legacy pagination 2024-08-06 18:20:26 -05:00
Alex Gleason
4c83d6d1b2
Do frontendController like I want to 2024-08-04 13:26:05 -05:00