Commit graph

  • 374dc3495c
    Merge remote-tracking branch 'origin/main' into recompute Alex Gleason 2024-05-14 19:43:50 -05:00
  • f163af55d8
    Remove deps-test.ts Alex Gleason 2024-05-14 19:19:57 -05:00
  • 31fc246526 Merge branch 'storages-async' into 'main' Alex Gleason 2024-05-15 00:17:17 +00:00
  • 4d342dff4a fix(streaming): move get muted users logic before upgrading connection to web socket P. Reis 2024-05-14 21:14:00 -03:00
  • 2fd50261f9
    streaming: actually hydrate with optimizer Alex Gleason 2024-05-14 19:11:38 -05:00
  • 477ee8b124
    Fix hydrateEvents in streaming Alex Gleason 2024-05-14 19:09:25 -05:00
  • d3a7f0849f
    deno lint Alex Gleason 2024-05-14 19:02:15 -05:00
  • 3d1d56355d
    Update scripts for async db Alex Gleason 2024-05-14 18:51:35 -05:00
  • 99a6c668c8
    Update recompute script Alex Gleason 2024-05-14 18:50:05 -05:00
  • 47bc551e0b
    Merge branch 'storages-async' into recompute Alex Gleason 2024-05-14 18:48:26 -05:00
  • b4d48218b8
    Add missing nostr-relaypool import Alex Gleason 2024-05-14 18:46:55 -05:00
  • a4226a963f
    Rework Kysely db to be async Alex Gleason 2024-05-14 18:44:42 -05:00
  • 68b5887ed0
    Don't let your memes be dreams Alex Gleason 2024-05-14 18:23:41 -05:00
  • 08c9ee0670
    Refactor client and firehose Alex Gleason 2024-05-14 16:25:24 -05:00
  • 3c706dc81b
    Storages: make all methods async (total chaos and destruction) Alex Gleason 2024-05-14 16:10:50 -05:00
  • dc87d3599d
    Add stats:recompute script Alex Gleason 2024-05-14 15:55:19 -05:00
  • 0a79ecb0a3 Merge branch 'stats-race' into 'main' Alex Gleason 2024-05-14 20:29:18 +00:00
  • 7feecab723
    stats: fix ambiguous column name error in Postgres? Alex Gleason 2024-05-14 15:25:56 -05:00
  • eef349f1e9
    Update stats before storing event Alex Gleason 2024-05-14 15:05:59 -05:00
  • a3597edb90 Merge branch 'signer-middleware' into 'main' Alex Gleason 2024-05-14 19:51:58 +00:00
  • efa1c92044
    Merge remote-tracking branch 'origin/main' into signer-middleware Alex Gleason 2024-05-14 14:48:47 -05:00
  • e53ea22274
    Remove unused import Alex Gleason 2024-05-14 14:48:37 -05:00
  • f12bb4b643 Merge branch 'block-globally-muted-user-to-post' into 'main' Alex Gleason 2024-05-14 19:46:36 +00:00
  • 46b5bbf841
    Uppercase CustomPolicy Alex Gleason 2024-05-14 14:39:48 -05:00
  • ecfea827e1
    Move RelayError into its own file, add helper methods Alex Gleason 2024-05-14 14:38:05 -05:00
  • 45b766af4d
    Remove 'user' from AppContext Alex Gleason 2024-05-14 14:24:48 -05:00
  • a061c248bd
    signerMiddleware: add debug log Alex Gleason 2024-05-14 14:18:44 -05:00
  • e5392f4d9e
    Merge remote-tracking branch 'origin/main' into signer-middleware Alex Gleason 2024-05-14 14:16:38 -05:00
  • b5f0d2f0e6
    docs/events: clean up User event kind Alex Gleason 2024-05-14 14:12:43 -05:00
  • dd3c64ef84
    Remove accidentally checked in file Alex Gleason 2024-05-14 13:09:16 -05:00
  • 2f938ae42e Merge branch 'hydrate-test-kind-1984' into 'main' Alex Gleason 2024-05-14 17:49:19 +00:00
  • d96481a0cf fix: remove duplicate streaming controller fix-duplicate-controller P. Reis 2024-05-14 14:36:12 -03:00
  • b626d75262 fix(streaming): posts from blocked users does not show up in global tab P. Reis 2024-05-14 14:22:37 -03:00
  • cd2a35d951
    ConnectSigner: make getPublicKey used the stored value instead of actually hitting the relay Alex Gleason 2024-05-14 12:20:36 -05:00
  • 03182f8a5a
    ConnectSigner: implement getRelays, support nprofile auth again Alex Gleason 2024-05-14 12:14:27 -05:00
  • 084143c5c8
    Rename all middleware to thingMiddleware Alex Gleason 2024-05-14 12:07:54 -05:00
  • 1accae2222
    Add a ConnectSigner to wrap our default opts to NConnectSigner, add c.set('signer') calls to nip98 middleware Alex Gleason 2024-05-14 12:04:31 -05:00
  • c715827c81
    c.get('pubkey') -> await c.get('signer')?.getPublicKey() Alex Gleason 2024-05-14 11:57:03 -05:00
  • c5fbe69b80
    requirePubkey -> requireSigner Alex Gleason 2024-05-14 11:42:53 -05:00
  • 5a2b1b7de7
    Destroy everything Alex Gleason 2024-05-14 11:40:20 -05:00
  • ee7864da8c
    Add a signerMiddleware Alex Gleason 2024-05-14 11:30:45 -05:00
  • caaa7016f0 test(hydrate): refactor to import fixtures with 'eventFixture' function P. Reis 2024-05-13 21:56:29 -03:00
  • b7821f6585 Merge branch 'fix-mentions' into 'main' Alex Gleason 2024-05-13 23:53:10 +00:00
  • cc9d2efef9
    Fix mentions Alex Gleason 2024-05-13 18:50:20 -05:00
  • 78137f373f test(hydrate): kind 1984 P. Reis 2024-05-13 20:22:27 -03:00
  • c67cb034b0 test: kind 1984 (author 'dictator') fixture P. Reis 2024-05-13 20:20:18 -03:00
  • f225f7498d test: kind 1 (author is 'george orwell') fixture P. Reis 2024-05-13 20:19:30 -03:00
  • aec0afd731 test: kind 0(user 'george orwell') fixture P. Reis 2024-05-13 20:18:42 -03:00
  • 9cb63a9918 test: kind 0(user 'dictator') fixture P. Reis 2024-05-13 20:18:11 -03:00
  • 4029971407 fix(pipeline): load custom policy if available P. Reis 2024-05-13 17:44:33 -03:00
  • 6105e00c80
    pipeline: add a placeholder for custom policy Alex Gleason 2024-05-13 12:43:01 -05:00
  • 9bff7a5086
    Fix some issues in pipeline and utils/api.ts Alex Gleason 2024-05-13 12:30:56 -05:00
  • 2140b3fbb2
    lookupPubkey: check the bech32 first Alex Gleason 2024-05-13 11:21:17 -05:00
  • 2010483089 Merge branch 'nostrconnect' into 'main' Alex Gleason 2024-05-12 21:57:15 +00:00
  • dc8010a78e
    getClientConnectUri: fix description value Alex Gleason 2024-05-12 13:26:26 -05:00
  • 3b0739f187
    Add a getClientConnectUri function, add "Nostr Connect" link in the OAuth form Alex Gleason 2024-05-12 13:12:46 -05:00
  • bdfa6f8826
    Add a getInstanceMetadata function to DRY a few controllers Alex Gleason 2024-05-12 12:32:40 -05:00
  • 928ae4ec22
    oauthController: calculate the script hash on the fly so we can edit it Alex Gleason 2024-05-12 10:56:27 -05:00
  • 4b7804872c Merge branch 'explicit-addressing' into 'main' Alex Gleason 2024-05-11 20:27:32 +00:00
  • 65034a4aae
    Support Explicit Addressing Alex Gleason 2024-05-11 14:34:02 -05:00
  • 04968fefaa test(MuteListPolicy): update error msg P. Reis 2024-05-11 14:02:24 -03:00
  • fe66937bba feat: do not allow deactivated accounts to post P. Reis 2024-05-11 12:04:44 -03:00
  • 801e68c6c4 fix: add error prefix according to NIP-01 P. Reis 2024-05-11 12:03:41 -03:00
  • d278fc980a Merge branch 'fix-reports-no-kind-0' into 'main' Alex Gleason 2024-05-10 22:20:23 +00:00
  • c017770760 ! -> ?. Alex Gleason 2024-05-10 22:17:44 +00:00
  • 323e425e8b fix(renderAdminReport): make sure reportedPubkey is not undefined P. Reis 2024-05-10 19:05:15 -03:00
  • d142ce618d Merge branch 'feat-create-mute-policy' into 'main' Alex Gleason 2024-05-10 21:35:13 +00:00
  • 732cb45b1e test(UserStore): update with 100.00% code coverage P. Reis 2024-05-10 18:20:00 -03:00
  • 4fdf15761c refactor(UserStore): remove isMuted function P. Reis 2024-05-10 18:18:55 -03:00
  • 3970bb81f7 refactor(MuteListPolicy): simplify condition P. Reis 2024-05-10 18:03:35 -03:00
  • d3b7668a1e fix: create renderAdminAccountFromPubkey and use it if reported account doesn't have a kind 0 P. Reis 2024-05-10 16:51:07 -03:00
  • 615ce4a2ac Merge branch 'fixtures-fn' into 'main' Alex Gleason 2024-05-10 19:19:56 +00:00
  • 282612b53c
    Add an eventFixture function to import fixtures in tests Alex Gleason 2024-05-10 14:10:19 -05:00
  • 4069ddc02c refactor(MuteListPolicy): human lint preference P. Reis 2024-05-10 14:37:02 -03:00
  • 86518dbac5 refactor(MuteListPolicy): shorthand private constructor P. Reis 2024-05-10 14:34:48 -03:00
  • 83adf4759e Update README.md Alex Gleason 2024-05-10 16:10:11 +00:00
  • ebeec2ccba test: MuteListPolicy with 100.00% code coverage P. Reis 2024-05-10 11:26:15 -03:00
  • 26dd4606ed test: UserStore with 100.00% code coverage P. Reis 2024-05-10 10:35:04 -03:00
  • 0c0465f131 refactor(UserStore): move mute logic to separate function & create isMuted() function P. Reis 2024-05-10 10:31:34 -03:00
  • c85f31f63f feat: create MuteListPolicy class P. Reis 2024-05-10 10:19:15 -03:00
  • afcf28b506 Merge branch 'admin-accounts-perform-action' into 'main' Alex Gleason 2024-05-09 16:46:54 +00:00
  • 4fa6b96d15 refactor(admin action): mute account even if it doesn't have a kind 0 P. Reis 2024-05-09 13:44:05 -03:00
  • 8429eed838 Merge branch 'docs-in-readme' into 'main' Alex Gleason 2024-05-09 13:24:03 +00:00
  • a1acc85494 feat: reference ditto docs in README.md P. Reis 2024-05-09 09:44:05 -03:00
  • 9e2225873d feat: implement action against an account P. Reis 2024-05-08 20:08:44 -03:00
  • e4952f0c21 feat: create updateListAdminEvent() & updateAdminEvent() P. Reis 2024-05-08 20:10:09 -03:00
  • e29fb28d78 Merge branch 'report-nits' into 'main' Alex Gleason 2024-05-08 22:29:41 +00:00
  • 06a1612750 Merge branch 'eventsdb-crash' into 'main' Alex Gleason 2024-05-08 22:14:39 +00:00
  • 64e49bca9d
    EventsDB: fix postgres crash when there are no local users Alex Gleason 2024-05-08 17:11:48 -05:00
  • c7e8beebc6
    renderReport: whoops, event.author -> event.reported_account Alex Gleason 2024-05-08 15:06:33 -05:00
  • 8530749192
    reportController: hydrate the report itself to get the author Alex Gleason 2024-05-08 15:03:58 -05:00
  • f99958c40e
    reportsController -> reportController Alex Gleason 2024-05-08 14:59:30 -05:00
  • ccf126516d Merge branch 'quote-repost-quote' into 'main' Alex Gleason 2024-05-08 19:58:40 +00:00
  • a82af47c67
    quote_repost -> quote Alex Gleason 2024-05-08 14:53:33 -05:00
  • 71899e54de Merge branch 'global-feed-index' into 'main' Alex Gleason 2024-05-08 19:37:16 +00:00
  • b16d5b749e
    Add a created_at, kind index for the global feed Alex Gleason 2024-05-08 14:34:22 -05:00
  • c6c10e4b7f Merge branch 'order-by-addr' into 'main' Alex Gleason 2024-05-08 19:06:53 +00:00
  • 6bc051c06b
    EventsDB: avoid ORDER BY when querying replaceable events by author Alex Gleason 2024-05-08 13:56:37 -05:00
  • b712986d37 Merge branch 'kysely-log' into 'main' Alex Gleason 2024-05-08 17:59:41 +00:00
  • 43e8f2a698
    Use a Kysely logger to log SQL regardless of the adapter used Alex Gleason 2024-05-08 12:56:42 -05:00