Commit Graph

1159 Commits

Author SHA1 Message Date
Alex Gleason 620fd6bb74 Merge branch 'configurable-local-port' into 'main'
Allow configuring the local port ditto listens on

See merge request soapbox-pub/ditto!181
2024-04-24 17:22:58 +00:00
Alex Gleason 953295c534 server.ts: Conf.localPort -> Conf.port 2024-04-24 16:26:56 +00:00
Siddharth Singh 58b034e169
rename DITTO_LISTEN_ON and localPort() to PORT and port() 2024-04-24 21:38:05 +05:30
Siddharth Singh 3880f1e013
allow configuring the local port ditto listens on 2024-04-24 21:32:02 +05:30
Alex Gleason 2bffb667c4 Merge branch 'hydrate-again' into 'main'
Rewrite hydrateEvents again

See merge request soapbox-pub/ditto!180
2024-04-24 02:49:40 +00:00
Alex Gleason 1f5ba81e98
hydrateEvents: early return is only needed for stats? 2024-04-23 21:40:02 -05:00
Alex Gleason a2c3daade7
hydrateEvents: return early if the results would be empty 2024-04-23 21:32:48 -05:00
Alex Gleason b8d01ea3de
hydrateEvents: use filters to find events in memory 2024-04-23 21:10:21 -05:00
Alex Gleason b2ef87c5b5 Merge branch 'admin-cli' into 'main'
Add admin:event and admin:role CLI tasks

See merge request soapbox-pub/ditto!179
2024-04-24 01:19:36 +00:00
Alex Gleason 443cede73e Merge branch 'admin-relay-api' into 'main'
Add an API to manage admin relays

See merge request soapbox-pub/ditto!178
2024-04-24 01:14:24 +00:00
Alex Gleason a1423bbf65
Fix hydrateEvents, lol 2024-04-23 20:11:07 -05:00
Alex Gleason 191b370c85
hydrate.test: remove unnecessary boilerplate 2024-04-23 19:50:23 -05:00
Alex Gleason 0aab3eb775
Rewrite hydrateEvents 2024-04-23 19:31:48 -05:00
Alex Gleason cbf1e8f280
Add admin:role CLI task 2024-04-23 18:13:18 -05:00
Alex Gleason b73b964fda
Add a better admin:event script 2024-04-23 17:32:24 -05:00
Alex Gleason 3204b61f0b
Add an API to manage admin relays 2024-04-23 16:21:36 -05: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
P. Reis 58d75d1939 fix: hydrate events stats and author stats with filter by kind 2024-04-23 17:19:34 -03:00
Alex Gleason 6c74ce9c12 Merge branch 'zod-alias' into 'main'
zod import alias

See merge request soapbox-pub/ditto!177
2024-04-23 20:07:45 +00:00
P. Reis 5fca482e5c refactor(hydrate events): change array to Map 2024-04-23 17:04:05 -03:00
Alex Gleason 0f9cc9fe51
zod import alias 2024-04-23 15:03:20 -05:00
Alex Gleason 3557102b08
deno.json: simplify unstable support (and enable Deno.Kv) 2024-04-23 01:36:03 -05:00
Alex Gleason a53a21ffcf
pipeline: print policy result 2024-04-23 01:29:18 -05:00
Alex Gleason e5dd4c587c Merge branch 'policy-plugin' into 'main'
Load a custom policy from data/policy.ts

See merge request soapbox-pub/ditto!176
2024-04-23 06:14:42 +00:00
Alex Gleason 69178ae523
Load a custom policy from data/policy.ts 2024-04-23 01:11:37 -05:00
P. Reis 7a12e5ec7b test: rough adapt tests for new performance hydratation 2024-04-22 22:15:41 -03:00
P. Reis c7b84e5438 test: kind 6 fixture 2024-04-22 22:15:41 -03:00
P. Reis 51f24fed87 test: kind 1 (normal post) fixture 2024-04-22 22:15:41 -03:00
P. Reis 351d81f2c8 test: kind 1 (quote repost) fixture 2024-04-22 22:15:41 -03:00
P. Reis 90eb6ede2b test: kind 0 (user 'me') fixture 2024-04-22 22:15:41 -03:00
P. Reis 062e21e8a8 test: remove 'hydrate quote repost WITHOUT hydrate author' 2024-04-22 22:15:41 -03: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
Alex Gleason ed08ac7c17 Merge branch 'feat-search-account-with-no-kind-0' into 'main'
Render account from pubkey if kind 0 is not present in database

See merge request soapbox-pub/ditto!173
2024-04-21 01:44:16 +00:00
P. Reis 12b030c8aa refactor: decode pubkey with right import in search account 2024-04-20 21:52:36 -03:00
P. Reis 49f06869a3 feat: render account from pubkey if no kind 0 exists - /v2/search 2024-04-20 21:26:05 -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 1c126425ac Merge branch 'hono-alias' into 'main'
Import hono with an import alias

See merge request soapbox-pub/ditto!172
2024-04-20 23:57:43 +00:00
Alex Gleason 64d50552b7
Import hono with an import alias 2024-04-20 18:54:15 -05:00
Alex Gleason 270dbab456 Merge branch 'appcontroller-type' into 'main'
Fix type of AppController

See merge request soapbox-pub/ditto!171
2024-04-20 23:53:03 +00:00
Alex Gleason 505a9bced1
Fix type of AppController 2024-04-20 18:47:34 -05:00
Alex Gleason ad33fec129 Merge branch 'postgresql' into 'main'
DittoDB: support `postgresql:` protocol

See merge request soapbox-pub/ditto!170
2024-04-20 02:23:34 +00:00
Alex Gleason 0ddb1782e5
DittoDB: support `postgresql:` protocol 2024-04-19 21:20:35 -05:00
Alex Gleason aeaa236518 Merge branch 'postgres' into 'main'
Support Postgres

See merge request soapbox-pub/ditto!167
2024-04-20 02:13:08 +00:00
Alex Gleason 80e554a5c9
Update deno.json imports 2024-04-19 21:08:13 -05:00
Alex Gleason 9ccf6bbea0
Mold the things to work with Postgres 2024-04-19 20:52:42 -05:00
Alex Gleason b87a59c521
Merge remote-tracking branch 'origin/main' into postgres 2024-04-19 18:32:02 -05:00
Alex Gleason 9632b5cc96 Merge branch 'refactor-utils-import' into 'main'
refactor(utils): resolve import specifier via the active import map

See merge request soapbox-pub/ditto!169
2024-04-19 22:55:22 +00:00
P. Reis bbe8df8217 refactor(utils): resolve import specifier via the active import map 2024-04-19 19:46:42 -03:00
Alex Gleason 11e81f0000 Merge branch 'nostrify' into 'main'
Switch NSpec to Nostrify, update imports

See merge request soapbox-pub/ditto!168
2024-04-19 21:42:17 +00:00
Alex Gleason 9c91e41e87
Switch NSpec to Nostrify, update imports 2024-04-19 16:39:35 -05:00