Commit graph

286 commits

Author SHA1 Message Date
Alex Gleason
ad68946899
Fix defaultTo migration 2025-02-02 19:41:45 -06:00
Alex Gleason
f04ca2b6ff
Rework language and media columns to use Nostrify search_ext column 2025-02-02 19:32:43 -06:00
Alex Gleason
b4184631c3
Merge remote-tracking branch 'origin/main' into feat-search-mime-type 2025-02-02 17:47:10 -06:00
Alex Gleason
b473898cef
Upgrade Logi 2025-01-30 01:43:57 -06:00
Alex Gleason
8f4ae833ca
logi: message -> msg 2025-01-29 12:30:46 -06:00
Alex Gleason
5f99bddb42
Add a logi custom handler for serializing non-JSON stuff (fix sql parameter serialization) 2025-01-28 19:37:45 -06:00
Alex Gleason
fd553d98e2
KyselyLogger: fix import order 2025-01-27 19:26:52 -06:00
Alex Gleason
5ea33f6817
KyselyLogger: improve parameter serialization 2025-01-27 19:26:26 -06:00
Alex Gleason
2165e649bc
Remove Stickynotes, replace all occurrences of console.log with logi 2025-01-27 18:11:32 -06:00
Alex Gleason
2a6f954df1
Add logi, start using it in KyselyLogger 2025-01-27 15:49:43 -06:00
P. Reis
a7bb975221 fix(migration 042): use .ifExists() 2025-01-22 20:30:39 -03:00
P. Reis
b037be44a4 feat: add mime_type column in nostr_events, add the following NIP 50 search extensions:
exact_mime_type, example: 'exact_mime_type:image/png' (uses hash index)
partial_mime_type, example 'partial_mime_type:image' (uses b-tree index)
only_media, example 'only_media:true' (sometimes uses index)
2025-01-22 17:01:10 -03:00
P. Reis
6fd0c273cb fix: follow people
create a new migration that replaces the function to NOTIFY only the event id
2024-10-29 11:07:51 -03:00
Alex Gleason
42f5e316a8
Let bunker_pubkey be different from user pubkey 2024-10-26 18:37:26 -05:00
Alex Gleason
013917d612
Expose a generic listen method on the database adapters 2024-10-19 21:01:42 -05:00
Alex Gleason
8155fae89a
Perform listen/notify of Nostr events to the pipeline 2024-10-19 20:27:46 -05:00
Alex Gleason
94d8d43d78
Add unique index on push_subscriptions token_hash 2024-10-14 16:02:07 -05:00
Alex Gleason
b4e63afb8c
Merge remote-tracking branch 'origin/main' into push 2024-10-11 18:03:20 -05:00
Alex Gleason
6107ce88e2
metrics: ditto_db_query_duration_ms -> ditto_db_query_duration_seconds 2024-10-10 13:20:48 -05:00
Alex Gleason
198ec973b6
Load VAPID keys from configuration 2024-10-08 19:57:46 -05:00
P. Reis
3f00f255a5 fix: type assertions in EventsDB 2024-10-08 11:01:34 -03:00
Alex Gleason
757b6c7e1c
Merge remote-tracking branch 'origin/main' into push 2024-10-06 15:51:50 -05:00
Alex Gleason
8d1b1b8abc
Add encrypted captcha answer, move AES utils 2024-10-03 19:36:44 -05:00
Alex Gleason
4561ec0d00
Store the Push Subscription in the database 2024-10-02 22:20:47 -05:00
Alex Gleason
049d99af9b
Merge remote-tracking branch 'origin/main' into push 2024-10-02 19:26:37 -05:00
Alex Gleason
ff361a4106
Recreate nip46_tokens in down migration 2024-10-02 18:34:19 -05:00
Alex Gleason
432857c2ff
Rework auth tokens table to use hashed/encrypted data 2024-10-02 18:28:24 -05:00
Alex Gleason
a10e810068
Create push_subscriptions table 2024-10-02 13:14:37 -05:00
Alex Gleason
bece384124
Add Web Push skeleton 2024-09-30 19:12:53 -05:00
Alex Gleason
350671db47
DittoPglite: prevent starting PGlite instances in worker threads 2024-09-25 14:31:28 -05:00
Alex Gleason
f0c8096498
stats64: delete invalid rows first 2024-09-20 10:07:50 -05:00
Alex Gleason
2b2cdca282
Use char(64) for stats primary keys 2024-09-20 09:58:46 -05:00
Alex Gleason
c582b1c520
author_stats: add index on followers_count 2024-09-20 09:16:09 -05:00
P. Reis
f063da1b86 refactor: add search field to AuthorStatsRow, remove AuthorSearch interface 2024-09-19 19:35:38 -03:00
P. Reis
017c17c8a2 refactor: remove author_search table, put search in author_stats 2024-09-19 19:35:05 -03:00
Alex Gleason
8e3ddaa056
Add PGLITE_DEBUG environment variable 2024-09-16 12:31:50 -05:00
Alex Gleason
394021e485
Don't use semi-colons in migration 2024-09-15 17:38:16 -05:00
Alex Gleason
642ecfd36f
Rename language migration to 033 2024-09-15 17:26:02 -05:00
Alex Gleason
8da223ad6c
Merge remote-tracking branch 'origin/main' into language-detection 2024-09-15 17:25:36 -05:00
Alex Gleason
f8902760ce
Make the language index a compound index 2024-09-15 13:37:23 -05:00
Alex Gleason
c24d11c6f3
Support NIP-50 language extension 2024-09-15 12:40:58 -05:00
P. Reis
b5aefdd93e feat: add pg_trgm extension in PGlite constructor 2024-09-13 10:24:33 -03:00
P. Reis
8bc8712cf3 feat: create and add author_search interface to DittoTables 2024-09-13 10:23:08 -03:00
P. Reis
40c187680e feat: create author_search table 2024-09-13 10:22:05 -03:00
Alex Gleason
ebc0250d81
DittoDB.getInstance() -> Storages.kysely() 2024-09-11 13:23:06 -05:00
Alex Gleason
f3ae200833
Simplify database interfaces, make tests use pglite 2024-09-11 11:48:58 -05:00
Alex Gleason
dc8d09a9da
Remove SQLite support 2024-09-11 11:08:33 -05:00
Alex Gleason
69329674e1
Add support for pglite 2024-09-07 16:38:28 -05:00
Alex Gleason
8efd6fbb20
Remove unattached_media table, replace with LRUCache, fix media upload order problem 2024-09-07 10:24:56 -05:00
Alex Gleason
5454942a2c
Update Prometheus metrics to conform to best practices 2024-09-07 08:52:02 -05:00