Commit Graph

  • ccb8c534ca Add hashtag timeline Alex Gleason 2023-08-28 19:51:21 -05:00
  • d8b7608346 Merge branch 'notifications' into 'develop' Alex Gleason 2023-08-28 21:05:02 +00:00
  • a075c533e6 Make notifications kind of work Alex Gleason 2023-08-28 15:56:38 -05:00
  • 2029c73eab requireAuth --> requirePubkey Alex Gleason 2023-08-28 15:38:32 -05:00
  • dfbad6b2e7 Add boilerplate notifications controller, fix import order in app.ts Alex Gleason 2023-08-28 14:23:27 -05:00
  • 6d5add92a2 Merge branch 'user-stream' into 'develop' Alex Gleason 2023-08-28 18:41:35 +00:00
  • e18aa878bb streaming: reorder tag params Alex Gleason 2023-08-28 13:37:15 -05:00
  • e6d1494a10 streaming: make user stream mostly work, in a kind of hacky way Alex Gleason 2023-08-28 13:34:15 -05:00
  • e8a7dfef2b Remove uneeded session ID from auth token Alex Gleason 2023-08-28 13:00:00 -05:00
  • f25284daa9 streaming: support hashtag timeline Alex Gleason 2023-08-28 12:42:28 -05:00
  • 2d619868aa Merge branch 'nip46' into 'develop' Alex Gleason 2023-08-27 15:19:18 +00:00
  • 2e8b26cf4f Remove legacy stream.ts module Alex Gleason 2023-08-27 10:07:13 -05:00
  • 320d2f493e change .positive() to .nonnegative() !!! Alex Gleason 2023-08-26 23:13:48 -05:00
  • 0a9b53bbc1 sign: fix parsing connect response from string to JSON Alex Gleason 2023-08-26 22:49:32 -05:00
  • 0227eb3b34 deno.json: fix imports warning Alex Gleason 2023-08-26 19:14:29 -05:00
  • 655004e775 Rework web signer to use NIP-46 events Alex Gleason 2023-08-26 18:03:59 -05:00
  • 1806cf2286 filter: treat the admin pubkey as local Alex Gleason 2023-08-26 17:31:52 -05:00
  • 9cd1ca1861 streaming: don't forget to close the subscription when the socket closes Alex Gleason 2023-08-26 15:57:51 -05:00
  • c13b7f4af7 subs: allow any object in place of the socket Alex Gleason 2023-08-26 15:55:16 -05:00
  • 67bba508af utils/web: make tags optional Alex Gleason 2023-08-26 15:21:33 -05:00
  • 1b2a486c65 pipeline: don't store ephemeral events Alex Gleason 2023-08-26 13:40:10 -05:00
  • 2aefdc4bd1 kinds: improve detection of legacy kinds Alex Gleason 2023-08-26 13:25:32 -05:00
  • fdc39297fd Add kinds module to classify events by kind Alex Gleason 2023-08-26 13:18:58 -05:00
  • 63def1d62c utils: add return types (to improve readability) Alex Gleason 2023-08-26 12:58:17 -05:00
  • 7570b0dee4 utils: new Date().getTime() --> Date.now() Alex Gleason 2023-08-26 12:56:07 -05:00
  • e17111a859 utils/web: PendingEvent --> EventStub Alex Gleason 2023-08-26 12:52:24 -05:00
  • 60cecafdb5 Remove admin.ts, move to sign.ts, add createAdminEvent function Alex Gleason 2023-08-26 12:48:08 -05:00
  • 3c279175bc instance: actually, put all this under a nostr key Alex Gleason 2023-08-26 12:28:25 -05:00
  • baf4c00fee instance: add urls.nostr_relay and pubkey properties to instance Alex Gleason 2023-08-26 12:01:46 -05:00
  • 887c68f052 config: add comments to all config options Alex Gleason 2023-08-26 11:55:16 -05:00
  • 4f12e067fc Merge branch 'public-stream' into 'develop' Alex Gleason 2023-08-26 01:19:14 +00:00
  • 9da03aa053 streaming: socket.addEventListener('open', ...) --> socket.onopen, etc Alex Gleason 2023-08-25 17:17:26 -05:00
  • a93d77c851 streaming: add stream param to streaming events Alex Gleason 2023-08-25 16:17:45 -05:00
  • b60e84d29b relay: only send if socket is open Alex Gleason 2023-08-25 15:00:48 -05:00
  • f7cd67c572 Make MastoAPI streaming work for public feeds Alex Gleason 2023-08-25 14:59:37 -05:00
  • d1117f5513 relay: improve variable names in handleReq Alex Gleason 2023-08-25 13:42:58 -05:00
  • c18d7b952f Move filter types into filter.ts Alex Gleason 2023-08-25 13:38:21 -05:00
  • baace5ea2d Refactor streaming to use async iterators Alex Gleason 2023-08-25 13:35:20 -05:00
  • 12f6b1f1b7 Merge branch 'subs' into 'develop' Alex Gleason 2023-08-24 23:45:08 +00:00
  • 00c531bbff relay: close sub when socket is closed Alex Gleason 2023-08-24 18:43:14 -05:00
  • d13136c709 Merge branch 'subs' into 'develop' Alex Gleason 2023-08-24 23:35:30 +00:00
  • f9de6932ac utils: remove unused import Alex Gleason 2023-08-24 17:42:28 -05:00
  • 2f7914f044 pipeline: skip previously encountered events Alex Gleason 2023-08-24 17:39:24 -05:00
  • a0dff12ca0 pipeline: don't stream events older than 10 seconds Alex Gleason 2023-08-24 17:26:46 -05:00
  • f1c465beea pipeline: optimize database calls Alex Gleason 2023-08-24 17:00:08 -05:00
  • 658dd397f5 relay: respect "local: true" filter Alex Gleason 2023-08-24 15:28:13 -05:00
  • a676b71d23 relay: make Nostr streaming work Alex Gleason 2023-08-23 23:25:38 -05:00
  • 0a4743b1cb Merge branch 'create-event' into 'develop' Alex Gleason 2023-08-20 03:27:34 +00:00
  • bcfc3e2414 Use createEvent in more places Alex Gleason 2023-08-19 22:25:45 -05:00
  • a82ae40c43 db/events: don't add tags to query unless they exist Alex Gleason 2023-08-19 15:26:41 -05:00
  • 19901eb828 scripts/relays: fix import Alex Gleason 2023-08-19 15:07:57 -05:00
  • 98b6a4b222 Increase NIP-05 lookup timeout to 2s Alex Gleason 2023-08-19 14:56:40 -05:00
  • f198779ebe Merge branch 'sync' into 'develop' Alex Gleason 2023-08-19 19:09:09 +00:00
  • f8e55d7f99 Merge branch 'follow' into 'develop' Alex Gleason 2023-08-19 19:06:58 +00:00
  • 23928c0024 Move hono-related functions until utils/web Alex Gleason 2023-08-19 14:05:08 -05:00
  • eb4aebedd7 Sync the user on verify_credentials Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/11 Alex Gleason 2023-08-19 13:57:17 -05:00
  • c08c801e71 Make following work Alex Gleason 2023-08-19 13:34:35 -05:00
  • 1c1b6a80bf Merge branch 'local-timeline' into 'develop' Alex Gleason 2023-08-19 18:04:04 +00:00
  • b087d08306 Make the local timeline correctly filter only local users Alex Gleason 2023-08-19 13:01:05 -05:00
  • c37dd2c2b5 db/events: skip undefined filter values Alex Gleason 2023-08-19 12:59:22 -05:00
  • fecd69bf8f mixer: don't use the client pool for local filters Alex Gleason 2023-08-19 12:38:20 -05:00
  • 05a7a773fe getFilters: return immediately if filters are empty Alex Gleason 2023-08-19 12:37:42 -05:00
  • 4a61ce26a9 Merge branch 'pipeline' into 'develop' Alex Gleason 2023-08-18 03:25:04 +00:00
  • 719b703e7c client: remove publish function, create statuses through pipeline Alex Gleason 2023-08-17 20:54:11 -05:00
  • 0158a6979e Publish events through pipeline Alex Gleason 2023-08-17 20:45:50 -05:00
  • 85345bc157 firehose: catch pipeline crash Alex Gleason 2023-08-17 20:28:23 -05:00
  • 0f70f5c76f Add a RelayError class, improve relay error handling Alex Gleason 2023-08-17 20:24:16 -05:00
  • dc49c305bd Move isLocallyFollowed to queries.ts Alex Gleason 2023-08-17 19:32:05 -05:00
  • 2011ca6e1d pipeline: remove redundant console.log Alex Gleason 2023-08-17 18:08:05 -05:00
  • 45abaf14a4 pipeline: refactor, use pipeline from relay Alex Gleason 2023-08-17 18:07:25 -05:00
  • 51881efde0 Push events from the client through the pipeline Alex Gleason 2023-08-17 16:48:58 -05:00
  • 87c67c0a39 Add pipeline module Alex Gleason 2023-08-17 16:47:22 -05:00
  • 3890df1a2d Merge branch 'queries' into 'develop' Alex Gleason 2023-08-17 20:44:12 +00:00
  • 299a1a0db0 Refactor some code that uses getFilters to import the whole module under a namespace Alex Gleason 2023-08-17 15:41:27 -05:00
  • 4f9b5c1431 statusController: remove unnecessary "as Event" Alex Gleason 2023-08-17 14:57:46 -05:00
  • 4f37a1b9f8 queries: don't unnecessarily sort things Alex Gleason 2023-08-17 14:55:00 -05:00
  • 7330cd10e2 Refactor getEvent to take an opts object Alex Gleason 2023-08-17 14:51:27 -05:00
  • 96a2c8b68a Remove Deno.Kv, remove --unstable flag Alex Gleason 2023-08-17 13:20:25 -05:00
  • 054a399f23 queries: reduce getFollows timeout to 1s Alex Gleason 2023-08-17 13:19:36 -05:00
  • c516f007a5 queries: remove unnecessary "as Event" assertions Alex Gleason 2023-08-17 13:18:46 -05:00
  • 5a27d791e3 queries: make getFeed accept a pubkey instead of event3 Alex Gleason 2023-08-17 13:15:47 -05:00
  • 870a6f5261 Add queries module for getting events for certain application needs Alex Gleason 2023-08-17 13:12:24 -05:00
  • b1c5dd0e34 Merge branch 'db-filters-limit' into 'develop' Alex Gleason 2023-08-17 03:15:57 +00:00
  • a35bc1eef3 db/events: use opts.limit Alex Gleason 2023-08-16 21:58:46 -05:00
  • b185d54f8d Merge branch 'event-type-refactor' into 'develop' Alex Gleason 2023-08-17 02:55:42 +00:00
  • 18beccf067 Merge branch 'mixer' into 'develop' Alex Gleason 2023-08-17 02:53:59 +00:00
  • c15194020f Delete event.ts, use nostr-tools types Alex Gleason 2023-08-16 21:53:51 -05:00
  • 5515c40df3 Remove deprecated getFilter (singular) functions Alex Gleason 2023-08-16 21:41:18 -05:00
  • 96641a6fa0 Move limit to GetFilterOpts Alex Gleason 2023-08-16 21:38:21 -05:00
  • bbaf1cb012 mixer: pass opts through to all getFilters functions Alex Gleason 2023-08-16 21:21:29 -05:00
  • d4721fb82d Add mixer module to combine results from DB and pool Alex Gleason 2023-08-16 16:12:27 -05:00
  • 59b7a3eed8 db/events: perform multiple filters with one union query, greatly simplify logic Alex Gleason 2023-08-16 15:32:02 -05:00
  • 4602b85afe db/events: remove unnecessary overloads Alex Gleason 2023-08-16 12:57:02 -05:00
  • 8f45f3a7ad Move DittoFilter to @/types.ts, refactor db/events query Alex Gleason 2023-08-16 12:54:17 -05:00
  • 4580b921c4 Merge branch 'firehose' into 'develop' Alex Gleason 2023-08-16 13:31:20 +00:00
  • 882a3fe203 Use only "active" relays in the pool Alex Gleason 2023-08-16 08:28:52 -05:00
  • a0769d7c92 db/relays: add active column Alex Gleason 2023-08-15 19:07:26 -05:00
  • 92f5bea891 db/relays: add "domain" column Alex Gleason 2023-08-15 18:59:49 -05:00
  • 2e983154bb db/relays: reformat Alex Gleason 2023-08-14 20:41:20 -05:00
  • 3da30553cb firehose: accept kind 10002 events Alex Gleason 2023-08-14 19:16:49 -05:00