Commit graph

3329 commits

Author SHA1 Message Date
Alex Gleason
66f7853c3b
Add cacheControlMiddleware 2025-01-23 13:04:40 -06:00
Alex Gleason
b8dbc432ab
Add Cache-Control headers to nostr.json responses 2025-01-23 13:00:43 -06:00
Alex Gleason
aa1515e7e9
Remove accidental HSTS header from packs/ route 2025-01-23 13:00:11 -06:00
P. Reis
a7bb975221 fix(migration 042): use .ifExists() 2025-01-22 20:30:39 -03:00
P. Reis
f879315d34 feat: script to populate mime-type 2025-01-22 20:25:40 -03:00
P. Reis
e388925815 Merge branch 'main' into feat-search-mime-type 2025-01-22 17:11:03 -03:00
P. Reis
c3966be65b feat(accountStatusesController): query for media faster 2025-01-22 17:10:24 -03:00
P. Reis
b037be44a4 feat: add mime_type column in nostr_events, add the following NIP 50 search extensions:
exact_mime_type, example: 'exact_mime_type:image/png' (uses hash index)
partial_mime_type, example 'partial_mime_type:image' (uses b-tree index)
only_media, example 'only_media:true' (sometimes uses index)
2025-01-22 17:01:10 -03:00
Alex Gleason
6d31949944
notActivitypubMiddleware: add bare ld+json to ACTIVITYPUB_TYPES 2025-01-21 18:49:08 -06:00
Alex Gleason
420cbba71f Merge branch 'not-activitypub' into 'main'
Add notActivityPub middleware to stop AP requests on /users/*

See merge request soapbox-pub/ditto!622
2025-01-22 00:43:18 +00:00
Alex Gleason
281872b0ad
Add notActivityPub middleware to stop AP requests on /users/* 2025-01-21 18:41:04 -06:00
Alex Gleason
3fd311b929 Merge branch 'pipeline-source' into 'main'
pipeline: skip refetch of encountered events

See merge request soapbox-pub/ditto!620
2025-01-22 00:03:27 +00:00
Alex Gleason
7fdfb806f4
pipeline: skip refetch of encountered events 2025-01-21 17:31:55 -06:00
Alex Gleason
1204dc722f Merge branch 'fix-mention' into 'main'
fix: mention with hyphen

See merge request soapbox-pub/ditto!619
2025-01-21 16:16:28 +00:00
P. Reis
e89853c56d fix: mention with hyphen 2025-01-21 13:12:39 -03:00
Alex Gleason
93a035e3ff
Streaming: handle token errors as 401s 2025-01-20 22:47:21 -06:00
Alex Gleason
ba8b7ecaea Merge branch 'caddy-log-ratelimit' into 'main'
Caddyfile: enable access log, add X-Real-IP header for rate limiting

See merge request soapbox-pub/ditto!618
2025-01-18 19:14:47 +00:00
Alex Gleason
d368bf90d5
Caddyfile: enable access log, add X-Real-IP header for rate limiting 2025-01-18 13:13:22 -06:00
Alex Gleason
f2766842ef Merge branch 'caddyfile' into 'main'
Add a Caddyfile

See merge request soapbox-pub/ditto!617
2025-01-18 01:00:54 +00:00
Alex Gleason
5b9868bc3a
Add a Caddyfile
Related: https://gitlab.com/soapbox-pub/ditto/-/issues/265
2025-01-17 18:59:25 -06:00
Alex Gleason
ed29ecdb3f Merge branch 'packs-cache' into 'main'
Add cache-control headers to /packs/*

See merge request soapbox-pub/ditto!616
2025-01-18 00:21:26 +00:00
Alex Gleason
51981009c4
Add cache-control headers to /packs/* 2025-01-17 18:19:32 -06:00
Alex Gleason
1e53457c9d Merge branch 'kind-20' into 'main'
Support kind 20 "Picture" events (NIP-68)

See merge request soapbox-pub/ditto!615
2025-01-05 17:39:35 +00:00
Alex Gleason
b61eb2ff11
Fix favourites of kind 20 events 2025-01-05 11:37:38 -06:00
Alex Gleason
079177ea0b
EventsDB: index kind 20 in search the same as kind 1 2025-01-05 11:26:05 -06:00
Alex Gleason
7a60b4b8d8
Support kind 20 "Picture" events (NIP-68) 2025-01-05 11:23:18 -06:00
Alex Gleason
5a32964eb5 Merge branch 'upgrade-nostrify' into 'main'
Upgrade Nostrify

See merge request soapbox-pub/ditto!614
2024-12-30 20:31:20 +00:00
Alex Gleason
e523da9d19
Upgrade Nostrify 2024-12-30 14:29:45 -06:00
Alex Gleason
51fc0c9cc9 Merge branch 'tl-ratelimit' into 'main'
Stricter timeline rate limits

See merge request soapbox-pub/ditto!612
2024-12-27 19:20:29 +00: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
e32976945e Merge branch 'media-newlines' into 'main'
Stop adding unnecessary newlines to the top of posts with images only

See merge request soapbox-pub/ditto!611
2024-12-27 02:43:20 +00:00
Alex Gleason
79e87008c1
Move content back up because it has side-effects with pubkeys 2024-12-26 20:40:59 -06:00
Alex Gleason
f72fdf79bb
Stop adding unnecessary newlines to the top of posts with images only 2024-12-26 20:33:26 -06:00
Alex Gleason
bb50ad7a43 Merge branch 'bunker-44' into 'main'
Switch to NIP-44 bunker encryption

See merge request soapbox-pub/ditto!608
2024-12-18 08:00:07 +00:00
Alex Gleason
139e600b79
Switch to NIP-44 bunker encryption
https://gitlab.com/soapbox-pub/ditto/-/issues/279
2024-12-18 01:56:53 -06:00
Alex Gleason
75f9c90a8c Merge branch 'future-block' into 'main'
pipeline: block events too far in the future

See merge request soapbox-pub/ditto!607
2024-12-17 21:07:18 +00:00
Alex Gleason
e3294e5351
pipeline: block events too far in the future 2024-12-17 14:58:40 -06:00
Alex Gleason
f1f00fcf38 Merge branch 'fix-reaction-target-pubkey' into 'main'
fix: add 'p' tag to kind 7 event

See merge request soapbox-pub/ditto!606
2024-12-12 00:06:46 +00:00
P. Reis
5de7cfb4da fix: add 'p' tag to kind 7 event 2024-12-11 21:04:00 -03:00
Alex Gleason
6eaf18a890 Merge branch 'valid-ws' into 'main'
Filter out invalid WebSocket URLs from pool, prevent admins from setting them

Closes #276

See merge request soapbox-pub/ditto!605
2024-12-10 23:45:58 +00:00
Alex Gleason
f8e77d90eb
Filter out invalid WebSocket URLs from pool, prevent admins from setting them
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/276
2024-12-10 17:43:41 -06:00
Alex Gleason
e3cc6922ae Merge branch 'make-search-domain-faster' into 'main'
Make domain:<domain> search faster

See merge request soapbox-pub/ditto!604
2024-12-09 14:49:18 +00:00
P. Reis
8101483622 refactor: make domain:<domain> search faster 2024-12-09 11:32:51 -03:00
Alex Gleason
dbfd1a9d35 Merge branch 'self-label' into 'main'
Fix Bluesky's selfLabel name

See merge request soapbox-pub/ditto!602
2024-12-06 20:52:13 +00:00
Alex Gleason
a7bfc665c3
Fix Bluesky's selfLabel name 2024-12-06 14:50:16 -06:00
Alex Gleason
d0f53f5601 Merge branch 'fix-do-not-search-when-empty-content' into 'main'
refactor(getIdsBySearch): do not search if the search content is empty

See merge request soapbox-pub/ditto!599
2024-12-05 19:24:54 +00:00
Alex Gleason
5df47403ad Merge branch 'fix-captcha-showing-up' into 'main'
Revert "Merge branch 'revert-70d30887' into 'main'"

Closes #269

See merge request soapbox-pub/ditto!601
2024-12-03 23:24:59 +00:00