Commit graph

2051 commits

Author SHA1 Message Date
P. Reis
0516fb6ce8 fix(zapController): remove not needed arguments 2024-10-18 14:08:47 -03:00
Alex Gleason
5b080c7bc0 Merge branch 'hydrate-null-author' into 'main'
Hydrate null authors

Closes #168

See merge request soapbox-pub/ditto!552
2024-10-18 14:55:34 +00:00
Alex Gleason
5d484e4bf6
webmanifest: add app icons 2024-10-17 18:15:11 -05:00
Alex Gleason
6ea71865f1
hydrate: build fallback authors during gatherAuthors step 2024-10-17 15:26:23 -05:00
Alex Gleason
4293092756
Fix zap amount in web push notification
Ref: https://gleasonator.dev/@idsera@ditto.pub/posts/eeddba51bb15e06654afd1952e62bd91d2248d9517ba499024b09887081dd919
2024-10-17 15:16:14 -05:00
Alex Gleason
33e5b20159
Hydrate null authors 2024-10-17 15:04:57 -05:00
Alex Gleason
b4b7381b49
Implement OAuth revoke endpoint 2024-10-17 14:20:42 -05:00
Alex Gleason
d1635712cf
Use nprofile and nevent links for external URLs in Account and Status 2024-10-16 10:13:37 -05:00
Alex Gleason
30d8cc4108
Test that DeepL translation doesn't alter Nostr URIs 2024-10-16 09:58:49 -05:00
Alex Gleason
bfe2c620e6
renderWebPushNotification: fix account without display_name 2024-10-15 17:16:53 -05:00
Alex Gleason
7fbda4a56b
Move push notification rendering to its own view 2024-10-15 17:13:39 -05:00
Alex Gleason
8bf0a443db
pipeline: Promise.all -> Promise.allSettled 2024-10-15 16:27:48 -05:00
Alex Gleason
45cf74c168
Encode VAPID public key with base64url 2024-10-15 15:51:52 -05:00
Alex Gleason
d9d280e6c1
Merge remote-tracking branch 'origin/main' into push 2024-10-14 19:59:37 -05:00
Alex Gleason
7ee1ca51d6
Delete not working controller test 2024-10-14 18:20:41 -05:00
Alex Gleason
95d970d8d0
webpush: add metrics and pipeline error handling 2024-10-14 18:06:22 -05:00
Alex Gleason
462f4ad786
Add placeholder data to push notification 2024-10-14 17:44:49 -05:00
Alex Gleason
4c5d98f402
webpush: don't notify author about own events 2024-10-14 17:31:05 -05:00
Alex Gleason
a7d8d86fa7
Add GET /api/v1/notifications/:id endpoint 2024-10-14 17:27:30 -05:00
Alex Gleason
30a5d9a20f
webpush: fix query error in pipeline 2024-10-14 16:24:13 -05:00
Alex Gleason
94d8d43d78
Add unique index on push_subscriptions token_hash 2024-10-14 16:02:07 -05:00
Alex Gleason
4019099c57
Add endpoint to GET a push subscription 2024-10-14 15:48:55 -05:00
Alex Gleason
b3928bac45
webpush: replace old subscriptions in transaction 2024-10-14 14:31:33 -05:00
Alex Gleason
94cf3b2931
Add push controller test 2024-10-13 23:29:06 -05:00
Alex Gleason
260340c58e
Fix EventsDB test 2024-10-13 16:41:20 -05:00
Alex Gleason
feec343d5a
EventsDB: fix plaintext search queries 2024-10-13 16:22:03 -05:00
Alex Gleason
b6925a5491
webpush: enforce endpoint as a URL 2024-10-12 22:58:29 -05:00
Alex Gleason
a7bca0bdff
Remove DittoWallet module 2024-10-11 18:06:17 -05:00
Alex Gleason
b4e63afb8c
Merge remote-tracking branch 'origin/main' into push 2024-10-11 18:03:20 -05:00
Alex Gleason
7dff4e88d4 Merge branch 'captcha-n' into 'main'
Switch captcha_solved from a label event to an n-tag on a user event

See merge request soapbox-pub/ditto!547
2024-10-11 22:43:39 +00:00
Alex Gleason
d4f3c673a2
deno lint 2024-10-11 17:35:45 -05:00
Alex Gleason
81a15ac82d Merge branch 'improve-lande-use' into 'main'
Improve setLanguage() function for better language detection

See merge request soapbox-pub/ditto!543
2024-10-11 21:52:11 +00:00
Alex Gleason
a484634d36
Switch captcha_solved from a label event to an n-tag on a user event 2024-10-11 16:50:52 -05:00
P. Reis
9c7e35a6b4 refactor: code preferences, formatting 2024-10-11 18:47:38 -03:00
Alex Gleason
c5ddd2ebb7
Make verify_credentials and update_credentials return a consistent CredentialAccount object 2024-10-11 16:25:29 -05:00
P. Reis
36d09af467 feat: make lande great again
create detectLanguage() function that removes emojis, links and other weird invisible characters
2024-10-11 14:28:01 -03:00
Alex Gleason
6fb3bfafc0
Mark registrations enabled in v2 instance 2024-10-11 02:52:41 -05:00
P. Reis
1cb13b141a feat: improve setLanguage() function, remove links and emojis from event.content before using lande 2024-10-10 22:46:37 -03:00
Alex Gleason
df3b8863df
LibreTranslateTranslator: move headers to plain object, add url variable 2024-10-10 14:16:29 -05:00
Alex Gleason
655e94ef91
DittoTranslator: move provider to top of interface 2024-10-10 14:14:29 -05:00
Alex Gleason
12d643e150
Add translation cache metrics, let the cache be configurable 2024-10-10 14:12:20 -05:00
Alex Gleason
d639d9a14d
Reorganize translation interfaces/files 2024-10-10 14:06:04 -05:00
Alex Gleason
874da1baad
Delete unused cacheMiddleware and ExpiringCache module 2024-10-10 14:01:18 -05:00
Alex Gleason
9469fff6ac
Rename translation variables from _ENDPOINT to _BASE_URL 2024-10-10 13:48:50 -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
81c28825a8
Record HTTP response time metrics 2024-10-10 13:20:03 -05:00
Alex Gleason
df8004e261
Decrease rate limit of translations 2024-10-09 21:04:05 -05:00
Alex Gleason
33d2eb6ca3
Remove Provider type (it's just a string) 2024-10-09 21:02:55 -05:00
Alex Gleason
c048cda2e5
Upgrade @gleasonator/policy in deno.lock, increase policy db timeout
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/244
2024-10-09 20:22:12 -05:00
Alex Gleason
d4767f56c6
Enable translations dynamically depending on whether a TRANSLATION_PROVIDER is set 2024-10-09 20:17:04 -05:00