111 Commits

Author SHA1 Message Date
Alex Gleason
823f389bce
NIP05: skip network request for invalid TLDs 2024-05-22 12:52:59 -05:00
Alex Gleason
bf6dc22c5a
Fix imeta stripping so it doesn't remove a bunch of newlines 2024-05-21 14:05:48 -05:00
Alex Gleason
5e607f664e
Add tags test 2024-05-21 13:32:27 -05:00
Alex Gleason
9839b8138f
tags.ts -> utils/tags.ts 2024-05-21 13:08:08 -05:00
Alex Gleason
8f393aa604
Remove ActivityPub actor endpoint, remove deps.ts 2024-05-21 12:51:19 -05:00
Alex Gleason
d4a029b35b
sanitize-html -> isomorphic-dompurify 2024-05-21 12:44:54 -05:00
Alex Gleason
6861dc1d57
Fix crash parsing Lightning URL
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/139
2024-05-20 12:49:01 -05:00
Alex Gleason
6542d6a777
Move uploader.ts to utils, make it kind of like api.ts 2024-05-18 22:04:43 -05:00
Alex Gleason
e5595d34be
Strip imeta links from the end of the content 2024-05-18 17:15:27 -05:00
Alex Gleason
cbf0bc3594
Fix note test 2024-05-18 15:46:28 -05:00
Alex Gleason
e7d350a0e3
Fix uploading by URL 2024-05-18 14:54:10 -05:00
Alex Gleason
611a94bdcf
Fix uploading (almost) 2024-05-18 14:32:50 -05:00
Alex Gleason
c8f9483795
Add note.test.ts 2024-05-18 11:56:22 -05:00
Alex Gleason
942260aa54
note.ts -> utils/note.ts 2024-05-18 11:53:33 -05:00
Alex Gleason
5997ff0fff
Create utils/media.ts, move some code from note.ts there 2024-05-18 11:52:33 -05:00
Alex Gleason
f163af55d8
Remove deps-test.ts 2024-05-14 19:19:57 -05:00
Alex Gleason
68b5887ed0
Don't let your memes be dreams 2024-05-14 18:24:34 -05:00
Alex Gleason
efa1c92044
Merge remote-tracking branch 'origin/main' into signer-middleware 2024-05-14 14:48:47 -05:00
Alex Gleason
f12bb4b643 Merge branch 'block-globally-muted-user-to-post' into 'main'
Do not allow deactivated accounts to post

Closes #118

See merge request soapbox-pub/ditto!245
2024-05-14 19:46:36 +00:00
Alex Gleason
ecfea827e1
Move RelayError into its own file, add helper methods 2024-05-14 14:38:38 -05:00
Alex Gleason
c715827c81
c.get('pubkey') -> await c.get('signer')?.getPublicKey() 2024-05-14 11:57:03 -05:00
Alex Gleason
9bff7a5086
Fix some issues in pipeline and utils/api.ts 2024-05-13 12:30:56 -05:00
Alex Gleason
2140b3fbb2
lookupPubkey: check the bech32 first 2024-05-13 11:21:17 -05:00
Alex Gleason
dc8010a78e
getClientConnectUri: fix description value 2024-05-12 13:33:22 -05:00
Alex Gleason
3b0739f187
Add a getClientConnectUri function, add "Nostr Connect" link in the OAuth form 2024-05-12 13:12:46 -05:00
Alex Gleason
bdfa6f8826
Add a getInstanceMetadata function to DRY a few controllers 2024-05-12 12:32:40 -05:00
Alex Gleason
65034a4aae
Support Explicit Addressing 2024-05-11 14:34:02 -05:00
P. Reis
e4952f0c21 feat: create updateListAdminEvent() & updateAdminEvent() 2024-05-08 20:12:20 -03:00
Alex Gleason
fc7ed8bf24
Remove zod schemas that we can get from NSchema 2024-05-01 19:51:12 -05:00
Alex Gleason
984695391a
unfurl -> unfurl.js 2024-05-01 16:59:15 -05:00
Alex Gleason
08ed52a57b
formdata-helper alias 2024-05-01 16:37:01 -05:00
Alex Gleason
d1f643d7ad
secp256k1 alias 2024-05-01 16:35:39 -05:00
Alex Gleason
5a7a409981
Alias unfurl, linkifyjs etc 2024-05-01 16:34:16 -05:00
Alex Gleason
e5c8030960
Move more deps to aliases 2024-05-01 16:29:21 -05:00
Alex Gleason
973791cde1
type-fest alias 2024-05-01 16:16:19 -05:00
Alex Gleason
3513206de1
stickynotes alias 2024-05-01 16:14:50 -05:00
Alex Gleason
c190d2c8ce
Refactor Storages to get lazy-loaded only when they are used 2024-05-01 14:56:47 -05:00
Alex Gleason
0bb4ccf5c9
Move nostr-tools to an import alias 2024-04-30 18:43:53 -05:00
Alex Gleason
f61d29eb66
Upgrade Nostrify to v0.15, use MockRelay in tests instead of NCache 2024-04-26 12:33:52 -05:00
Alex Gleason
7aa931a69e
try-catch the InternalRelay req's 2024-04-25 18:24:03 -05:00
Alex Gleason
0f9cc9fe51
zod import alias 2024-04-23 15:03:20 -05:00
Alex Gleason
64d50552b7
Import hono with an import alias 2024-04-20 18:54:15 -05:00
Alex Gleason
9c91e41e87
Switch NSpec to Nostrify, update imports 2024-04-19 16:39:35 -05:00
Alex Gleason
1cb53bdb84 Revert "Merge branch 'rework-cache' into 'main'"
This reverts merge request !156
2024-04-19 14:37:53 +00:00
Alex Gleason
6ab3a640bf
Rework cache middleware to use in-memory cache, remove ExpiringCache module 2024-04-13 14:00:21 -05:00
Alex Gleason
9bfed222da
unfurlCard: fix types 2024-04-08 11:38:59 -05:00
Alex Gleason
7e7cf1df64
createStatusController: parse mentions in text 2024-04-06 18:51:37 -05:00
Alex Gleason
4e54589c09
Deliver API events to outbox relays 2024-04-02 18:29:26 -05:00
Alex Gleason
a19f1aa6e8
NIP05 DRYer 2024-03-27 19:45:03 -05:00
Alex Gleason
435c69e6a8
nip05Cache: lookup local nip05 from direct database call 2024-03-27 18:39:50 -05:00