Commit graph

2564 commits

Author SHA1 Message Date
P. Reis
c23ddb7d84 feat: create LibreTranslateTranslator class that implements DittoTranslator 2024-10-07 14:58:33 -03:00
P. Reis
321d26b470 test(DeepLTranslator): create multiple tests 2024-10-07 14:55:12 -03:00
P. Reis
27f435a93c feat: create DeepLTranslator class that implements DittoTranslator 2024-10-07 14:54:10 -03:00
P. Reis
ea4d0f002a feat: create dittoTranslations LRUCache, create DittoTranslator interface, create MastodonTranslation type, create DittoTranslation type, create Provider type and some other minor ones 2024-10-07 14:42:10 -03:00
P. Reis
f434f87584 feat(instanceV2Controller): enable translation 2024-10-07 14:39:42 -03:00
P. Reis
c6626313bc feat: get TRANSLATION_PROVIDER, TRANSLATION_PROVIDER_ENDPOINT & TRANSLATION_PROVIDER_API_KEY enviornment variables 2024-10-07 14:38:55 -03:00
P. Reis
de8eba4079 feat: create getLanguage() function, used for testing purposes 2024-10-07 14:37:53 -03:00
P. Reis
0d126ad3b7 feat(languageSchema): split value to extract only language and not country code
pt-BR becomes pt
en-US becomes en
2024-10-07 14:36:26 -03:00
P. Reis
f3b7f91a07 feat: languageSchema converts value to lowercase and returns type LanguageCode 2024-10-04 23:37:01 -03:00
P. Reis
2ca421bef2 Merge branch 'main' into translate-status 2024-10-03 19:56:13 -03: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
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
Alex Gleason
e064531ca2 Merge branch 'run-dockerfile-as-root' into 'main'
run Dockerfile as root

See merge request soapbox-pub/ditto!531
2024-10-03 21:03:45 +00:00
Siddharth Singh
018600058a
run Dockerfile as root 2024-10-04 02:29:54 +05:30
Alex Gleason
4f0f341f01 Merge branch 'dockerfile-changes' into 'main'
Update dockerfile for tribes

See merge request soapbox-pub/ditto!530
2024-10-03 20:55:09 +00:00
Siddharth Singh
7107e38915
fix port nonsense 2024-10-04 02:14:58 +05:30
Siddharth Singh
baae2974f3
typo fix 2024-10-04 02:14:21 +05:30
Siddharth Singh
eac375b99d
update dockerfile for tribes 2024-10-04 02:06:10 +05:30
Alex Gleason
cb78799997 Merge branch 'ts-ext' into 'main'
Treat .ts links in statuses as application/typescript

Closes #241

See merge request soapbox-pub/ditto!529
2024-10-03 18:07:00 +00: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
P. Reis
ab85360d2f refactor: move getConfigs() function and frontendConfig logic to 'src/utils/frontendConfig.ts' 2024-10-03 11:17:21 -03:00
Alex Gleason
76fceace7c Merge branch 'hints' into 'main'
Improve relay/pubkey hints when creating a status

See merge request soapbox-pub/ditto!527
2024-10-03 03:57:21 +00: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
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
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
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
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