Commit graph

1977 commits

Author SHA1 Message Date
Alex Gleason
8bd67720d6 Merge branch 'custom-emoji-react' into 'main'
Render custom emoji reaction in notifications

See merge request soapbox-pub/ditto!392
2024-06-19 18:38:04 +00:00
Alex Gleason
3daac37e08
Render custom emoji reaction in notifications 2024-06-19 13:35:43 -05:00
Alex Gleason
875eee7a77
Avoid using the user's own relay list when publishing events
Sadly I think these relays are causing Ditto to lock up and stop working. This sucks
2024-06-19 13:25:06 -05:00
Alex Gleason
6ee9eb63d3
Get Ditto version from deno.json 2024-06-18 18:05:11 -05:00
Alex Gleason
335cb991d2
Add a few NIP-011 limitation fields 2024-06-18 17:49:52 -05:00
Alex Gleason
5ac19715cd Merge branch 'limiter' into 'main'
Rate-limit HTTP requests

See merge request soapbox-pub/ditto!390
2024-06-18 20:47:22 +00:00
Alex Gleason
0d3c619245
rateLimitMiddleware: improve tsdoc comment 2024-06-18 15:24:44 -05:00
Alex Gleason
330b38ff68
Move rateLimiterMiddleware to a separate file 2024-06-18 14:28:13 -05:00
Alex Gleason
72f5391f97
Update deno.lock 2024-06-18 13:38:56 -05:00
Alex Gleason
03fc6e777c
nginx: add more proxy headers 2024-06-18 13:38:17 -05:00
Alex Gleason
a824d72a1a
Add IP rate limiter 2024-06-18 12:09:29 -05:00
Alex Gleason
5ba0c8c14a Merge branch 'hono-jsr' into 'main'
Upgrade hono, switch it to use JSR

See merge request soapbox-pub/ditto!389
2024-06-18 16:53:42 +00:00
Alex Gleason
66abfa38c3
Upgrade hono, switch it to use JSR 2024-06-18 11:51:51 -05:00
Alex Gleason
f56aa26996 Merge branch 'uuid-trx' into 'main'
Upgrade kysely_deno_postgres

See merge request soapbox-pub/ditto!388
2024-06-18 04:40:31 +00:00
Alex Gleason
1fe4b4bb81
Upgrade kysely_deno_postgres 2024-06-17 23:36:50 -05:00
Alex Gleason
1294dcaa4e Merge branch 'revert-f81fcf0e' into 'main'
Revert "Merge branch 'stats-transaction' into 'main'"

See merge request soapbox-pub/ditto!387
2024-06-18 01:12:48 +00:00
Alex Gleason
c48b976d04 Revert "Merge branch 'stats-transaction' into 'main'"
This reverts merge request !386
2024-06-18 01:11:03 +00:00
Alex Gleason
1209b1c430 Merge branch 'fix-zap-amount-zero' into 'main'
Get zap amount from zap receipt if not present in zap request

See merge request soapbox-pub/ditto!385
2024-06-18 00:16:09 +00:00
P. Reis
8b67a05792 refactor: parse zap request with zod 2024-06-17 21:07:27 -03:00
P. Reis
bf017195a6 refactor: sort imports alphabetically 2024-06-17 20:15:51 -03:00
P. Reis
98565efa12 refactor(bolt11): get amount with new library 2024-06-17 19:49:18 -03:00
P. Reis
b237432312 fix: change bolt11 dependency to light-bolt11-decoder 2024-06-17 19:40:47 -03:00
Alex Gleason
2f3b656af5
Upgrade Nostrify to v0.23.3, remove normalizeFilters call in EventsDB (NDatabase does this now) 2024-06-17 17:29:01 -05:00
Alex Gleason
f81fcf0eec Merge branch 'stats-transaction' into 'main'
Update stats in a transaction

Closes #161

See merge request soapbox-pub/ditto!386
2024-06-17 21:42:54 +00:00
Alex Gleason
74944dcd2a
EventsDB: remove no longer relevant tests 2024-06-17 16:40:06 -05:00
Alex Gleason
8c3e16fd41
Ignore repetitive error message 2024-06-17 16:29:52 -05:00
P. Reis
c6425ad7ff fix(bolt11): print error 2024-06-17 18:15:42 -03:00
Alex Gleason
96af3bb8bf
Update stats in a transaction 2024-06-17 16:07:03 -05:00
P. Reis
7a29c349e8 fix: get amount from zap receipt if not present in zap request 2024-06-17 14:51:12 -03:00
P. Reis
2f49e94e4c test(bolt11): getAmount function 2024-06-17 14:51:12 -03:00
P. Reis
82bf36f064 feat(bolt11): create getAmount function 2024-06-17 14:51:09 -03:00
P. Reis
d33ecdc0f6 build: specify bolt11 version 2024-06-17 14:28:26 -03:00
P. Reis
d71eb47212 build(deno.lock): bolt11 dependencies 2024-06-17 11:18:59 -03:00
P. Reis
ba9a578ec0 feat: add bolt11 dependency 2024-06-17 11:05:14 -03:00
Alex Gleason
1983171193
setup: removed unused node:url import 2024-06-16 00:15:10 -05:00
Alex Gleason
dbacb6b63a
setup: handle DATABASE_URL more transparently on re-runs 2024-06-16 00:14:43 -05:00
Alex Gleason
078c267bb8 Merge branch 'config-cleanup' into 'main'
Improve the setup script and clean up config

Closes #156

See merge request soapbox-pub/ditto!384
2024-06-16 04:53:51 +00:00
Alex Gleason
c3af8299f1
Spread s3 config
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/156
2024-06-15 23:51:50 -05:00
Alex Gleason
c39fd2daa2
Improve the setup script and clean up config 2024-06-15 23:41:19 -05:00
Alex Gleason
287c89b9fd Merge branch 'entity-types' into 'main'
Add interfaces for Mastodon entity types, hide deactivated accounts

See merge request soapbox-pub/ditto!383
2024-06-16 00:38:40 +00:00
Alex Gleason
e63ee9b5a3
Add interfaces for Mastodon entity types, hide deactivated accounts 2024-06-15 19:36:34 -05:00
Alex Gleason
06db5d2b1d Merge branch 'trends-serial' into 'main'
trends: rewrite getTrendingTags to process the history in serial, split across several queries

See merge request soapbox-pub/ditto!382
2024-06-15 23:35:20 +00:00
Alex Gleason
6ce8aae0d1
trends: rewrite getTrendingTags to process the history in serial, split across several queries 2024-06-15 18:14:38 -05:00
Alex Gleason
1afd8a739a
Update deno.lock 2024-06-15 17:20:39 -05:00
Alex Gleason
a3b7acd1c1
Cache trends API results at a different interval than trends calculations 2024-06-15 17:18:55 -05:00
Alex Gleason
844ebe0323 Merge branch 'trends-script' into 'main'
Add a script to update trends

See merge request soapbox-pub/ditto!380
2024-06-15 17:19:07 +00:00
Alex Gleason
8d8e46eae8
Add a script to update trends 2024-06-15 12:13:35 -05:00
Alex Gleason
72ca7af7f0
admin-role script: minor tweaks 2024-06-15 11:40:03 -05:00
Alex Gleason
97951d5d91 Merge branch 'admin-role-script-support-npub' into 'main'
support npubs in admin:role script

See merge request soapbox-pub/ditto!366
2024-06-14 21:24:00 +00:00
Siddharth Singh
cc14f2a549
fix accidental vscode changes 2024-06-14 21:02:40 +05:30