Commit graph

1878 commits

Author SHA1 Message Date
Alex Gleason
0bf41bc913
Use Pleroma's captcha endpoint (we basically match their return type) 2024-10-03 19:37:14 -05:00
Alex Gleason
8d1b1b8abc
Add encrypted captcha answer, move AES utils 2024-10-03 19:36:44 -05:00
Alex Gleason
f83ad0dbce
Add preliminary captcha controller 2024-10-03 19:23:22 -05:00
Alex Gleason
205b9a77fe Merge branch 'wallet' into 'main'
Add an HD wallet

See merge request soapbox-pub/ditto!532
2024-10-03 22:56:58 +00:00
Alex Gleason
e153020597
Add an HD wallet 2024-10-03 17:51:47 -05:00
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
67b0684a81 refactor(trends.ts): move logic one level up, rename 'languagesIds' to 'values', remove WITH SQL statement 2024-10-03 19:40:29 -03:00
Alex Gleason
bd3d7fda94
Treat .ts links in statuses as application/typescript
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/241
2024-10-03 13:02:40 -05:00
Alex Gleason
dfae0b15c7 Merge branch 'use-sticky-notes-zap' into 'main'
refactor(lnurl): use Stickynotes instead of legacy Debug

See merge request soapbox-pub/ditto!528
2024-10-03 16:07:53 +00:00
P. Reis
e42c047362 refactor: use Stickynotes instead of legacy Debug 2024-10-03 12:56:40 -03:00
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
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
23bedd82a0
utils: remove unused sha256 text function 2024-10-02 13:36:00 -05: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
50733d6e0b
Retain uploads for 6 hours 2024-09-30 20:33:17 -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
P. Reis
b33a6cdfe0 feat: add TREND_LANGUAGES environment variable 2024-09-30 13:53:30 -03:00
Alex Gleason
64a6d7170c
Add initial webmanifest controller 2024-09-26 13:50:51 -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
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
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
Alex Gleason
d72ec843cf
Add relay connections metrics 2024-09-23 22:28:01 -05:00
Alex Gleason
fc73cb2961
Upgrade Nostrify 2024-09-23 22:16:03 -05:00
Alex Gleason
6a8b22d018
metrics: improve fetch response metrics 2024-09-23 21:29:50 -05:00
Alex Gleason
fe7a8aa8a7
Merge remote-tracking branch 'origin/main' into policy-signal 2024-09-23 18:06:11 -05:00
Alex Gleason
6d0611dafe
Pass signal into policy 2024-09-23 18:04:12 -05:00
P. Reis
42371bcc31 fix: catch updateStats() function 2024-09-23 17:47:55 -03:00
P. Reis
92d8f9b8c2 refactor(pipeline.ts): use correct Stickynotes, and not legacy Debug 2024-09-23 15:36:05 -03:00