Commit graph

2744 commits

Author SHA1 Message Date
Alex Gleason
7f8697f4f3
Fix zap tag logic 2024-10-02 22:52:07 -05:00
Alex Gleason
031297f253
Improve relay/pubkey hints when creating a status 2024-10-02 22:46:52 -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
33980d54f3 Merge branch 'hash-tokens' into 'main'
Rework auth tokens table to use hashed/encrypted data

Closes #234

See merge request soapbox-pub/ditto!526
2024-10-02 23:50:51 +00: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
e73a8d71dc
auth: add encryptSecretKey & decryptSecretKey functions 2024-10-02 17:56:30 -05:00
Alex Gleason
70f56af281
Add auth utils for generating/hashing/encoding/decoding tokens 2024-10-02 15:05:37 -05:00
Alex Gleason
1d2bf07460
Remove unused nostr-relaypool library 2024-10-02 13:44:50 -05:00
Alex Gleason
23bedd82a0
utils: remove unused sha256 text function 2024-10-02 13:36:00 -05:00
Alex Gleason
a10e810068
Create push_subscriptions table 2024-10-02 13:14:37 -05:00
Alex Gleason
c5bcf1d4a3 Merge branch 'ditto-instance-kind-0' into 'main'
Add script for setting Ditto instance kind 0

See merge request soapbox-pub/ditto!525
2024-10-02 15:40:09 +00: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
P. Reis
7c29c81226 test: pass languagesIds in getTrendingTagValues() function 2024-10-01 13:58:51 -03:00
P. Reis
d8b2c057b0 feat: make trends fast again
remove previous JOIN, now if a language is set, it will do '''query.where('trends.value', 'in', languagesIds);''', which is faster than a JOIN
2024-10-01 13:58:08 -03:00
P. Reis
b549cdef53 refactor: rename TREND_LANGUAGES to DITTO_LANGUAGES 2024-10-01 13:52:30 -03:00
Alex Gleason
141d5be999
Merge remote-tracking branch 'origin/main' into push 2024-09-30 20:33:41 -05:00
Alex Gleason
50733d6e0b
Retain uploads for 6 hours 2024-09-30 20:33:17 -05:00
Alex Gleason
bece384124
Add Web Push skeleton 2024-09-30 19:12:53 -05:00
P. Reis
c0d9a90bfa refactor: remove un-used variable 2024-09-30 14:09:19 -03:00
P. Reis
5e23f4d636 test: trends without language and with language 2024-09-30 14:03:22 -03:00
P. Reis
61bc57c778 feat: support trendings by language 2024-09-30 14:02:12 -03:00
Alex Gleason
52b02043d9
Upgrade @gleasonator/policy in deno.lock 2024-09-30 11:54:41 -05:00
P. Reis
b33a6cdfe0 feat: add TREND_LANGUAGES environment variable 2024-09-30 13:53:30 -03:00
Alex Gleason
be5350a0a5 Merge branch 'manifest' into 'main'
Add initial webmanifest controller

See merge request soapbox-pub/ditto!521
2024-09-26 18:57:31 +00:00
Alex Gleason
64a6d7170c
Add initial webmanifest controller 2024-09-26 13:50:51 -05:00
Alex Gleason
4da82e9484
Update @gleasonator/policy in deno.lock 2024-09-25 16:47:30 -05:00
Alex Gleason
2fcaa9fe31
publicTimelineController: add conditional around filters.search assignment 2024-09-25 15:16:17 -05:00
Alex Gleason
68ab9f638c Merge branch 'pglite-policy' into 'main'
Fix PGlite in local development

See merge request soapbox-pub/ditto!520
2024-09-25 20:15:46 +00:00
Alex Gleason
2fdf68552c Merge branch 'filter-global-feed-by-language' into 'main'
feat: filter global and local feed by language

Closes #223

See merge request soapbox-pub/ditto!519
2024-09-25 20:12:17 +00:00
Alex Gleason
ff658cf496
policy: fix Error constructor 2024-09-25 15:10:12 -05:00
P. Reis
8ad101ce7b refactor: remove max(2) in languageSchema 2024-09-25 17:03:30 -03:00
Alex Gleason
f50b41f22b
Refactor PolicyWorker error handling 2024-09-25 15:01:40 -05:00
P. Reis
77f5965cdc refactor: return zod errors in publicTimelineController 2024-09-25 16:52:54 -03:00
P. Reis
12aaf8c678 refactor: use languageSchema in createStatusSchema 2024-09-25 16:51:59 -03:00
P. Reis
92aaca0d91 feat: create languageSchema 2024-09-25 16:51:23 -03:00
Alex Gleason
350671db47
DittoPglite: prevent starting PGlite instances in worker threads 2024-09-25 14:31:28 -05:00
Alex Gleason
606aeb3236
test: drop postgres tables dynamically 2024-09-25 13:13:58 -05:00
P. Reis
dac11a9055 feat: filter global and local feed by language
add a 'language' field in publicQuerySchema
2024-09-25 13:56:14 -03:00
Alex Gleason
f44b9267ad
Remove unused utils/ipfs.ts 2024-09-25 09:47:51 -05:00
Alex Gleason
657a513cf1 Merge branch 'pglite-0.2.8' into 'main'
Upgrade to pglite v0.2.8

See merge request soapbox-pub/ditto!518
2024-09-25 14:14:14 +00:00
Alex Gleason
f1828bfb52
Upgrade to pglite v0.2.8 2024-09-25 09:10:00 -05:00
Alex Gleason
3ff3ba81b7 Merge branch 'zap-notification-streaming' into 'main'
feat: zap notification in streaming

Closes #204

See merge request soapbox-pub/ditto!490
2024-09-24 22:50:35 +00:00
Alex Gleason
be88e0bc2e Merge branch 'pipeline-stats' into 'main'
pipeline: insert event even if stats fail

Closes #221 and #227

See merge request soapbox-pub/ditto!517
2024-09-24 21:54:32 +00:00
Alex Gleason
9f02215c04
Rethrow the error 2024-09-24 16:20:42 -05:00
Alex Gleason
3469374d8e
pipeline: insert event even if stats fail 2024-09-24 16:15:26 -05:00
P. Reis
b81ae3f043 Merge branch 'main' into zap-notification-streaming 2024-09-24 18:12:28 -03:00