Commit graph

98 commits

Author SHA1 Message Date
Alex Gleason
7780507a15
Add semaphore to nip05 script 2025-02-07 18:17:50 -06:00
Alex Gleason
b902abc7cc
Use an even simpler query for db:populate:nip05 script 2025-02-07 18:13:39 -06:00
Alex Gleason
b0dc7faaff
Simplify db:populate:nip05 script 2025-02-07 17:49:39 -06:00
Alex Gleason
a4a26d7575
Make db:populate:nip05 script more efficient 2025-02-07 17:48:07 -06:00
Alex Gleason
5157a90b63
Add populate:nip05 script 2025-02-07 16:03:22 -06:00
Alex Gleason
46558a97e4
Make STREAK_WINDOW configurable 2025-02-07 11:50:37 -06:00
Alex Gleason
30559ba043
streak-recompute: only update changed rows 2025-02-06 16:04:25 -06:00
Alex Gleason
b480947c4d
Add a script to recompute the streak of all authors 2025-02-06 15:56:49 -06:00
P. Reis
7beb2d594a feat: populate extensions 2025-02-03 23:08:20 +00:00
Alex Gleason
449daf1e35
ditto.http.response: use error level when status >= 500 2025-01-29 10:06:21 -06:00
Alex Gleason
7a60b4b8d8
Support kind 20 "Picture" events (NIP-68) 2025-01-05 11:23:18 -06:00
Alex Gleason
da82462fa2
Remove other usages of : any 2024-11-22 10:28:26 -06:00
Alex Gleason
4eb7ea2461
Remove e: any from error handlers 2024-11-22 10:26:30 -06:00
Alex Gleason
f40a9d8a5a Merge branch 'ditto-retroactive-policies' into 'main'
add cleanup script (apply policy to events created before it applied)

Closes #232

See merge request soapbox-pub/ditto!590
2024-11-21 16:37:57 +00:00
Siddharth Singh
8607810117
delete events as they are streamed from db 2024-11-21 22:03:55 +05:30
Alex Gleason
ceddcce4cf
Type check scripts/ 2024-11-21 10:25:15 -06:00
Siddharth Singh
a985d1add1
add cleanup script (apply policy to events created before it applied) 2024-11-17 22:17:26 +05:30
Alex Gleason
de2c0effbf
Remove import '@/config.ts' from trends script 2024-10-18 13:29:34 -05:00
Alex Gleason
198ec973b6
Load VAPID keys from configuration 2024-10-08 19:57:46 -05:00
Alex Gleason
d0666ff818 Merge branch 'fix-db-export' into 'main'
fix filter generation in db:export

See merge request soapbox-pub/ditto!533
2024-10-04 00:20:00 +00:00
Siddharth Singh
04f155580c
fix filter generation in db:export 2024-10-04 05:33:24 +05:30
Alex Gleason
cec16487ba Merge branch 'trends-any-language' into 'main'
Trends in any language

Closes #222

See merge request soapbox-pub/ditto!523
2024-10-03 22:44:37 +00:00
P. Reis
a5def9fa6c refactor: just import config.ts directly instead of loading dotenv in trends.ts script 2024-10-03 18:16:23 -03:00
Siddharth Singh
3df1fe4d3a
neatness 2024-10-02 20:53:57 +05:30
Siddharth Singh
a5762628a5
add script for setting ditto kind 0 2024-10-02 20:47:46 +05:30
P. Reis
e7f5e563f5 feat: load dotenv in script/trends.ts 2024-10-01 13:59:21 -03:00
Alex Gleason
cd66234af7
Ugrade to Deno 2.0 2024-09-22 17:35:04 -05:00
Siddharth Singh
0dcb1965be
Change setup.ts to use password input instead of plaintext 2024-09-16 05:52:51 +05:30
P. Reis
d7ae3722c8 refactor: insert each event per iteration in for loop - db:populate-search 2024-09-15 16:52:49 -03:00
P. Reis
197b2c8c8b refactor(populate search script): use store.req instead of streaming 2024-09-13 18:49:20 -03:00
P. Reis
24d909fd28 feat: create script to populate author_search table 2024-09-13 10:34:15 -03:00
Alex Gleason
ebc0250d81
DittoDB.getInstance() -> Storages.kysely() 2024-09-11 13:23:06 -05:00
Alex Gleason
d2fb3fd253
Make EventsDB not rely on Conf 2024-09-11 13:06:20 -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
Siddharth Singh
e7f5535bd2
handle event insertion errors with warning 2024-09-01 19:15:22 +05:30
Siddharth Singh
125dfb54f3
Add tests for db:export filters 2024-08-25 19:41:35 +05:30
Siddharth Singh
fb199123be
first working version 2024-08-24 22:56:35 +05:30
Siddharth S Singh
9298bf6608 first commit (nonfunctional) 2024-08-23 16:25:34 +05:30
Alex Gleason
f116950a83
Fix db:migrate script 2024-08-12 15:25:51 -05:00
Alex Gleason
617659c7fd
Fix DittoDB+EventsDB relationship 2024-08-12 15:13:49 -05:00
Alex Gleason
9f9a07e618
Improve performance of import script 2024-08-11 16:08:15 -05:00
P. Reis
84c56282ac docs/fix: rename db:import to nostr:pull 2024-08-02 21:19:52 -03:00
Alex Gleason
ba3f816955
Add db:import task 2024-08-02 16:54:35 -05:00
Alex Gleason
9543049419
Add db:export command 2024-08-02 16:31:39 -05:00
Alex Gleason
cd961dad86
delay -> sleep, style tweaks 2024-07-11 17:19:47 -05:00
Siddharth Singh
a804608afb Merge branch 'main' into 'use-postgres-js'
# Conflicts:
#   deno.json
#   src/db/adapters/DittoPostgres.ts
2024-07-06 12:03:21 +00:00
Siddharth Singh
757e5c9baa
print name as import acknowledgement 2024-07-02 05:21:16 +05:30
Siddharth Singh
d2df6721bd
fix kind 1 querying logic 2024-07-02 05:01:16 +05:30
Siddharth Singh
f1e9eb4f4c
fetch each author's notes separately 2024-07-02 04:58:06 +05:30