Commit Graph

120 Commits

Author SHA1 Message Date
Alex Gleason
69ff568214 Stop recounting author stats constantly 2024-05-24 20:24:17 -05:00
Alex Gleason
04018015c5 stats: fix race conditions (on Postgres) 2024-05-24 20:11:22 -05:00
Alex Gleason
8344ac6b39 stats.test: insert the note for FK constraint 2024-05-24 17:55:25 -05:00
Alex Gleason
c6dea07ac3 Add back reactions_count column so trending can still work 2024-05-24 17:51:32 -05:00
Alex Gleason
f7c9a96719 Nuke the old stats module, support emoji reactions on posts 2024-05-24 17:40:51 -05:00
Alex Gleason
ee2065b76b stats: add (and test) countAuthorStats 2024-05-24 16:24:47 -05:00
Alex Gleason
34f3cc8d24 Fully test the new stats module 2024-05-24 15:52:30 -05:00
Alex Gleason
0fd5f26977 stats: handle kind 5 deletions 2024-05-23 23:02:21 -05:00
Alex Gleason
1da4566c42 Basically rewrite the stats module 2024-05-23 22:41:16 -05:00
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