Commit Graph

  • 875fcfb09d firehose: nown --> known Alex Gleason 2023-08-14 19:01:56 -05:00
  • 45a3e2974e firehose: expand criteria, improve logging Alex Gleason 2023-08-14 19:01:28 -05:00
  • b11677573b db/relays: skip if values are empty Alex Gleason 2023-08-14 19:00:54 -05:00
  • e3ade42f58 Added script to populate relays from external source Alex Gleason 2023-08-14 18:46:35 -05:00
  • f13616a740 Bump kysely-deno-sqlite to v1.0.0 (no changes) Alex Gleason 2023-08-14 18:27:30 -05:00
  • 3b4bfb1d90 Merge remote-tracking branch 'origin/develop' into firehose Alex Gleason 2023-08-14 18:25:28 -05:00
  • 4839b775a9 Merge branch 'safe-fetch-1.0' into 'develop' Alex Gleason 2023-08-14 23:15:23 +00:00
  • 6c944d40f1 Bump deno-safe-fetch to v1.0.0 Alex Gleason 2023-08-14 18:13:43 -05:00
  • 3a2722e190 Merge remote-tracking branch 'origin/develop' into firehose Alex Gleason 2023-08-14 18:06:27 -05:00
  • 34020a6d95 Merge branch 'safe-fetch' into 'develop' Alex Gleason 2023-08-14 23:05:03 +00:00
  • 1ed6fa54df Use safeFetch implementation Alex Gleason 2023-08-14 18:03:24 -05:00
  • cd5cf96886 firehose: update comment Alex Gleason 2023-08-14 15:39:21 -05:00
  • 16ba224124 Get rid of DITTO_RELAY, derive from LOCAL_DOMAIN Alex Gleason 2023-08-14 14:40:30 -05:00
  • 78f638e633 Add relays to database and start tracking them Alex Gleason 2023-08-14 14:11:28 -05:00
  • 4a47c25f1e Add NIP-11 schema Alex Gleason 2023-08-14 12:29:54 -05:00
  • 1b8bb78717 Rename loopback to firehose Alex Gleason 2023-08-14 11:02:09 -05:00
  • 988a4e8c28 Merge branch 'develop' of gitlab.com:soapbox-pub/ditto into develop Alex Gleason 2023-08-13 18:50:56 -05:00
  • 007f464d31 db/events: fix import order Alex Gleason 2023-08-12 20:04:19 -05:00
  • 167a1e9fdb Merge branch 'relay' into 'develop' Alex Gleason 2023-08-13 00:51:34 +00:00
  • 9da4fb2bba db/events: add comments Alex Gleason 2023-08-12 15:45:58 -05:00
  • 4c8a685528 relay: allow local users to post to the relay Alex Gleason 2023-08-12 15:24:33 -05:00
  • a35ea6ab5d relay: restrict to local events unless the filter is already narrow Alex Gleason 2023-08-12 15:14:34 -05:00
  • 8e47c9dda2 relay: refactor into smaller functions Alex Gleason 2023-08-12 15:07:07 -05:00
  • b2f538ed94 Relay: improve types, DRY Alex Gleason 2023-08-12 14:41:07 -05:00
  • 075da543b0 Make relay only return local events Alex Gleason 2023-08-12 14:32:57 -05:00
  • 3593d5420d Relay: limit to 100 events per filter Alex Gleason 2023-08-12 14:01:30 -05:00
  • b852111ec5 Fix getFilters overload order Alex Gleason 2023-08-12 13:57:20 -05:00
  • 808e8941b6 Relay: make REQ work (doesn't stream yet) Alex Gleason 2023-08-12 13:40:21 -05:00
  • e2adc7ad1a Remove unused MetaContent type Alex Gleason 2023-08-12 11:49:33 -05:00
  • e999d693d0 Rename hexIdSchema back to nostrIdSchema Alex Gleason 2023-08-12 11:48:49 -05:00
  • 80775d8bf0 Move more Nostr schema stuff into schemas/nostr.ts Alex Gleason 2023-08-12 11:48:11 -05:00
  • 893542cf58 Reorganize some nostr schema code Alex Gleason 2023-08-12 11:28:16 -05:00
  • 1f470ffe2d Add nostr schema for parsing filters Alex Gleason 2023-08-11 19:55:16 -05:00
  • 6516997353 Merge branch 'kysely' into 'develop' Alex Gleason 2023-08-11 18:19:01 +00:00
  • 9cca801c80 Order tag conditionals alphabetically, improve logic Alex Gleason 2023-08-11 12:14:39 -05:00
  • 48343c8035 Add events test Alex Gleason 2023-08-10 14:56:27 -05:00
  • 63772022cf deno fmt Alex Gleason 2023-08-10 14:56:14 -05:00
  • 5f37a68b9f Bump std to v0.198.0 Alex Gleason 2023-08-10 14:08:47 -05:00
  • d150268a1d Upgrade Deno to v1.36.1 Alex Gleason 2023-08-10 14:08:09 -05:00
  • 14eb3cb43b Let DB_PATH be configurable Alex Gleason 2023-08-10 13:37:56 -05:00
  • 8ebd85b760 Improve tag indexing logic Alex Gleason 2023-08-09 20:34:21 -05:00
  • f127aa7406 Also track events from local users Alex Gleason 2023-08-09 14:24:49 -05:00
  • 3b3947ea61 Only track events which are locally followed Alex Gleason 2023-08-09 14:06:57 -05:00
  • 2d2157293c Try this? Alex Gleason 2023-08-09 02:03:18 -05:00
  • a1c8d3352f Simplify Alex Gleason 2023-08-09 02:01:12 -05:00
  • ad112ff9a6 Use explicit return type for getFilterQuery Alex Gleason 2023-08-09 01:53:50 -05:00
  • 55c957d10b Fix type error Alex Gleason 2023-08-09 01:28:38 -05:00
  • 9671a77bee Add isFollowed function Alex Gleason 2023-08-09 01:18:43 -05:00
  • 0bfd9d83c1 Add getFilters function Alex Gleason 2023-08-09 00:22:20 -05:00
  • b408838ae0 Support querying by tags Alex Gleason 2023-08-08 23:40:08 -05:00
  • 6c96240602 Remove foreign key constraint from tags.event_id Alex Gleason 2023-08-08 22:35:43 -05:00
  • 08756c3400 deno.json: add deno task debug Alex Gleason 2023-08-08 19:36:58 -05:00
  • cd68da5b93 Minor refactoring Alex Gleason 2023-08-08 19:31:14 -05:00
  • 295b16e943 Add a very nice getFilter function Alex Gleason 2023-08-08 15:35:37 -05:00
  • 176df2a2bc deno.json: remove "lib/" Alex Gleason 2023-08-07 02:13:49 -05:00
  • 97a250c1f7 Add kysely migrations Alex Gleason 2023-08-07 01:45:02 -05:00
  • eb78a213f6 deno lint Alex Gleason 2023-08-07 00:51:11 -05:00
  • 4cbdda401a Remove unused builder.ts Alex Gleason 2023-08-07 00:50:31 -05:00
  • 3cb5f91d3b Refactor db.ts to use kysely statements Alex Gleason 2023-08-07 00:50:12 -05:00
  • ecc9db86dd Import kysely-deno-sqlite as a dep Alex Gleason 2023-08-06 23:30:46 -05:00
  • a4681e7281 Do it the normal way instead of the dumb way Alex Gleason 2023-08-06 22:29:56 -05:00
  • 781ca741dd Implement the DenoSqliteDriver correctly Alex Gleason 2023-08-06 22:21:46 -05:00
  • 7c2f290775 Refactor kysely lib into separate files Alex Gleason 2023-08-06 21:57:26 -05:00
  • ed896278e0 fix lint Alex Gleason 2023-08-06 21:27:34 -05:00
  • 465a3db501 kysely adapter pretty much working! Alex Gleason 2023-08-06 20:22:12 -05:00
  • d799075657 Get Kysely adapter almost working... Alex Gleason 2023-08-06 20:14:11 -05:00
  • 8ceb63fc89 Try storing events in new database Alex Gleason 2023-08-06 15:03:29 -05:00
  • 91eac97d5c Preliminary sqlite db setup Alex Gleason 2023-08-06 12:54:00 -05:00
  • 00fa037aaf Merge branch 'maintenance' into 'develop' Alex Gleason 2023-08-04 20:15:11 +00:00
  • dc6b52f6d8 Upgrade deps Alex Gleason 2023-08-04 14:48:37 -05:00
  • f418496bbb Upgrade Deno to 1.36.0 Alex Gleason 2023-08-04 14:42:42 -05:00
  • 72f63a677e deno.json: harden test permissions Alex Gleason 2023-08-04 14:41:08 -05:00
  • ae7dd4e2ee deno task dev --> deno task start Alex Gleason 2023-08-04 14:37:23 -05:00
  • 0ca9367bd1 deno.json: harden permissions Alex Gleason 2023-08-04 14:36:25 -05:00
  • 8ee1a0d888 Load dotenv in config.ts, ignore .env.defaults and .env.example Alex Gleason 2023-08-04 14:17:50 -05:00
  • e58e11e425 Upgrade dotenv to 0.197.0 Alex Gleason 2023-08-04 14:13:58 -05:00
  • f2a3f285fa Use Deno.serve instead of deprecated "serve" from deno_std Alex Gleason 2023-08-04 14:11:13 -05:00
  • 97d2298178 toActor: don't require the nip05 Related: https://gitlab.com/soapbox-pub/ditto/-/issues/30 Alex Gleason 2023-07-27 13:27:53 -05:00
  • 8019a8d958 Merge branch 'actor' into 'develop' Alex Gleason 2023-07-27 17:40:22 +00:00
  • b52694679f actorController: refactor notFound Alex Gleason 2023-07-27 11:03:46 -05:00
  • 819ae61bca Add actorController Alex Gleason 2023-07-27 10:36:19 -05:00
  • 4e6b9f4328 Merge remote-tracking branch 'origin/develop' into actor Alex Gleason 2023-07-27 09:57:52 -05:00
  • 89e7abec9a Merge branch 'tag-history-date' into 'develop' Alex Gleason 2023-07-26 22:31:28 +00:00
  • c251b51803 Trends: add some useful comments for later Alex Gleason 2023-07-26 17:30:17 -05:00
  • bc3a96eeed Refactor trending tags history, make it more correct Alex Gleason 2023-07-26 17:18:21 -05:00
  • f8d46cae58 Trends: fill in empty tag histories Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/29 Alex Gleason 2023-07-26 15:40:29 -05:00
  • 89b98ae77a Fix tag history date Alex Gleason 2023-07-26 14:51:57 -05:00
  • 75f5668887 Merge branch 'trending-tags' into 'develop' Alex Gleason 2023-07-26 18:03:54 +00:00
  • 14e60048a6 loopback: use RelayPool instead of nostr-tools just because it doesn't die so often Alex Gleason 2023-07-26 12:54:06 -05:00
  • 7eedeef2b4 Track up to 5 tags max per post Alex Gleason 2023-07-26 09:40:52 -05:00
  • c88e58344f Improve tag history Alex Gleason 2023-07-25 23:21:42 -05:00
  • d7316c5eeb GitLab CI: enable test job Alex Gleason 2023-07-25 20:55:43 -05:00
  • 5b536040ce Minor logging tweaks Alex Gleason 2023-07-25 20:55:12 -05:00
  • ad48e4a787 Trends: add limit param, fix order Alex Gleason 2023-07-25 20:40:31 -05:00
  • 1a860adde7 Support tag history Alex Gleason 2023-07-25 20:26:49 -05:00
  • 7c8aa88069 Trends: track based on the event's created_at date, instead of whenever the row was inserted Alex Gleason 2023-07-25 18:35:07 -05:00
  • 79ec5dd4e0 Refactor loopback.ts Alex Gleason 2023-07-25 18:22:05 -05:00
  • 33f87822d4 Trends: support author threshold (default: 3) Alex Gleason 2023-07-25 18:04:00 -05:00
  • 969bc1fcba TrendsDB: cleanup on construction Alex Gleason 2023-07-25 17:49:42 -05:00
  • cbb294dbc2 Trends: support limit param Alex Gleason 2023-07-25 17:44:38 -05:00