Commit graph

2238 commits

Author SHA1 Message Date
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
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
51981009c4
Add cache-control headers to /packs/* 2025-01-17 18:19:32 -06: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
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
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
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
e3294e5351
pipeline: block events too far in the future 2024-12-17 14:58:40 -06: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
P. Reis
8101483622 refactor: make domain:<domain> search faster 2024-12-09 11:32:51 -03: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
P. Reis
b5221eb43a fix: stop captcha showing up 2024-12-03 20:05:38 -03:00
P. Reis
e0d9e83f28 Revert "Merge branch 'revert-70d30887' into 'main'"
This reverts commit 0c2f082281, reversing
changes made to 70d3088735.
2024-12-03 20:04:18 -03:00
Alex Gleason
261cd339fa Revert "Merge branch 'fix-stop-overwite-kind-0-unnecessarily' into 'main'"
This reverts merge request !598
2024-12-03 22:03:46 +00:00
Alex Gleason
70d3088735 Merge branch 'fix-stop-overwite-kind-0-unnecessarily' into 'main'
fix(updateCredentialsController): stop overwriting kind 0 unnecessarily

Closes #269

See merge request soapbox-pub/ditto!598
2024-12-03 21:29:12 +00:00
P. Reis
2b6bf125e1 refactor(updateCredentialsController): accountFromPubkey if the user has no kind 0 2024-12-03 18:23:13 -03:00
P. Reis
dfff24d3b2 refactor(updateCredentialsController): return error if event is undefined 2024-12-03 15:22:37 -03:00
P. Reis
30d7f1a053 refactor(updateCredentialsController): stop overwriting kind 0 unnecessarily 2024-12-03 14:33:04 -03:00
P. Reis
b45fcdde69 Revert "fix(updateCredentialsController): stop overwriting kind 0 unnecessarily"
This reverts commit 342ba7d4b1.
2024-12-03 14:23:00 -03:00
Alex Gleason
cd95c38eec
'q' tag should omit marker per NIP-18 2024-11-30 13:14:16 -06:00
P. Reis
74ef00e9d8 refactor(getIdsBySearch): do not search if the search content is empty 2024-11-29 23:39:14 -03:00
P. Reis
342ba7d4b1 fix(updateCredentialsController): stop overwriting kind 0 unnecessarily 2024-11-29 11:49:37 -03:00
Alex Gleason
d86096dd91
Merge remote-tracking branch 'origin/main' into no-unauthenticated 2024-11-26 00:48:39 -06:00
Alex Gleason
40215716db
Delete cursed pipeline test 2024-11-26 00:09:04 -06:00
Alex Gleason
4ed66b8fe5
accountLookupController: support !no-unauthenticated 2024-11-25 22:44:14 -06:00
Alex Gleason
1dc19ef422
Support Bluesky's !no-unauthenticated self-label 2024-11-25 22:36:32 -06:00
Alex Gleason
418dbd6d0c
Let a proxy tag not be a URL (to support atproto URIs) 2024-11-22 10:49:05 -06:00
Alex Gleason
da82462fa2
Remove other usages of : any 2024-11-22 10:28:26 -06:00
Alex Gleason
4eb7ea2461
Remove e: any from error handlers 2024-11-22 10:26:30 -06:00
Alex Gleason
d2df2a5e22
Linkify profile field values 2024-11-20 11:06:36 -06:00
Alex Gleason
81780bec72
Let field limits be configurable 2024-11-20 10:58:21 -06:00
Alex Gleason
39cb1ec0c9
renderAccount: only display up to 10 profile fields 2024-11-20 10:50:49 -06:00
Alex Gleason
7227202a86
Instruct Soapbox to use up to 10 custom profile fields 2024-11-20 10:49:19 -06:00
Alex Gleason
098e1b7fff
Add a custom parseFormData helper to simulate Mastodon's (Rails) formdata parser 2024-11-20 09:46:09 -06:00
Alex Gleason
281f57d88e
Include fields in account.source 2024-11-20 09:45:52 -06:00