Commit graph

115 commits

Author SHA1 Message Date
Alex Gleason
96fe8920cd
Make database timeouts configurable 2024-07-12 13:49:44 -05:00
Alex Gleason
3e7bab538a
Increase timeout for account statuses endpoint and feed endpoints 2024-07-02 20:13:44 +01:00
Alex Gleason
766290bd45 accountStatusesController: fix oopsie whoopsie TypeError (gj TypeScript) 2024-06-20 05:59:41 +00:00
Alex Gleason
003d60c959
Don't display posts of disabled user on their profile 2024-06-19 14:06:02 -05:00
P. Reis
ae01a19725 fix: render reblog in account timeline 2024-06-06 17:46:53 -03:00
Alex Gleason
816f3c806d
Remove the console.log from accountLookupController 2024-06-01 10:46:19 -05:00
Alex Gleason
a66df583fb
Don't encrypt settings_store 2024-05-26 12:34:18 -05:00
Alex Gleason
c89867f486
Remove unused NostrMetadata import 2024-05-25 09:25:09 -05:00
Alex Gleason
b64ea84b82
Use z.or 2024-05-25 09:20:16 -05:00
Alex Gleason
4f32972d85
updateCredentialsController: delete empty fields from metadata 2024-05-25 09:17:56 -05:00
P. Reis
5dee6450ec fix(update credentials): allow only valid data or empty string 2024-05-25 10:41:39 -03:00
Alex Gleason
622a2b2a4f
Implement familiar followers 2024-05-24 22:30:56 -05:00
Alex Gleason
307090e32f
updateCredentialsController: stricter validation, support bot field 2024-05-24 13:09:32 -05:00
P. Reis
c7726b652b feat: save user lud16 & website into kind 0 2024-05-23 15:59:29 -03:00
Alex Gleason
9839b8138f
tags.ts -> utils/tags.ts 2024-05-21 13:08:08 -05:00
Alex Gleason
590da75cf2
Merge remote-tracking branch 'origin/main' into feat-persist-user-preference 2024-05-20 14:02:38 -05:00
Alex Gleason
9754e29603
accountSearchController: respect the limit param 2024-05-19 11:45:42 -05:00
Alex Gleason
5523c3fc0e
verifyCredentials: wait up to 5 seconds 2024-05-18 23:02:59 -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
82c03dcb56
Rewrite all the uploaders 2024-05-18 22:00:24 -05:00
Alex Gleason
68b5887ed0
Don't let your memes be dreams 2024-05-14 18:24:34 -05:00
Alex Gleason
c715827c81
c.get('pubkey') -> await c.get('signer')?.getPublicKey() 2024-05-14 11:57:03 -05:00
P. Reis
f2f0aa8741 fix(accountLookup): fix user not found by using 'accountFromPubkey' 2024-05-03 09:52:25 -03:00
Alex Gleason
09c596c9e4
Add back block controllers, but 422 them 2024-05-02 15:34:17 -05:00
Alex Gleason
4c71dec6ce
Rename blocks to mutes in the API 2024-05-02 15:26:46 -05:00
Alex Gleason
ec7b3f8350
followController: manually set following: true in the response 2024-05-02 15:02:05 -05:00
Alex Gleason
4045a6bdfc
Catch metadata when parsing 2024-05-01 19:55:58 -05:00
Alex Gleason
fc7ed8bf24
Remove zod schemas that we can get from NSchema 2024-05-01 19:51:12 -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
P. Reis
bb82df14c6 refactor: user preference in create & verify credentials 2024-04-29 13:49:12 -03:00
P. Reis
6627704114 feat: save user preferences (kind 30078) & encrypt it 2024-04-28 17:07:41 -03:00
Alex Gleason
5d84566385 Merge branch 'perf-hydrate-events' into 'main'
Performance: hydrate events makes up to 5 calls to database

See merge request soapbox-pub/ditto!175
2024-04-23 20:24:55 +00:00
Alex Gleason
0f9cc9fe51
zod import alias 2024-04-23 15:03:20 -05:00
P. Reis
b77c8a00cd perf: make up to 5 calls to database in hydrateEvents & remove old hydrate functions 2024-04-22 22:15:36 -03:00
P. Reis
12b030c8aa refactor: decode pubkey with right import in search account 2024-04-20 21:52:36 -03:00
P. Reis
60a1ff7adc feat: render account from pubkey if no kind 0 exists - /v1/accounts/search 2024-04-20 21:03:17 -03:00
Alex Gleason
9c91e41e87
Switch NSpec to Nostrify, update imports 2024-04-19 16:39:35 -05:00
P. Reis
6248272243 feat: add quote repost 2024-04-15 17:19:37 -03:00
Alex Gleason
215d184808
accountSearchController: utilize the searchStore 2024-04-06 14:56:48 -05:00
Alex Gleason
d4c94ba549
Remove DITTO_ENV config, make registrations always open 2024-03-29 11:51:32 -05:00
Alex Gleason
9842b1aedd
Remove username from user events 2024-03-27 18:11:07 -05:00
Alex Gleason
e1bc55fcf4
updateCredentialsController: withSource true 2024-03-25 12:35:57 -05:00
Alex Gleason
75c277e7e8
updateCredentials: allow setting nip05 through the API, remove restrictions on update_credentials 2024-03-24 16:42:19 -05:00
Alex Gleason
ad2261a37e
Move accountLookup function into a separate module (to prevent circular dependencies) 2024-03-20 11:55:21 -05:00
Alex Gleason
c8b378ad10
Remove DittoFilter, use search instead of local 2024-03-20 11:34:04 -05:00
Alex Gleason
8b9566d79b
Remove relations filters, switch some stuff to use optimizer (requires bravery) 2024-03-06 12:55:02 -06:00
Alex Gleason
be3f1104db
getAndRenderAccount: render account from pubkey if not found 2024-02-19 14:20:00 -06:00
Alex Gleason
5b24b7ad39
Pass Request signal down from API controllers 2024-01-23 15:58:59 -06:00
Alex Gleason
c6062874bd
Implement NStore interface from NLib 2024-01-23 14:06:51 -06:00