Alex Gleason
8182fb43c1
Display all users in nostr.json
2025-11-14 02:04:28 -06:00
Alex Gleason
370deac1af
Bump gleasonator-policy in deno.lock
2025-06-06 08:16:07 -05:00
Alex Gleason
c79cd80859
Bump gleasonator-policy in deno.lock
2025-06-06 07:11:19 -05:00
Alex Gleason
24d27c4cdd
Index I/i tags
2025-06-01 19:45:36 -05:00
Alex Gleason
96799d1918
Index kind 1111 tags
2025-06-01 14:45:29 -05:00
Alex Gleason
293a0d10fb
Bump gleasonator-policy in lockfile
2025-05-09 13:03:41 -05:00
Alex Gleason
789b6c7e93
Guard against duplicate ephemeral events being streamed
2025-05-08 19:52:41 -05:00
Alex Gleason
984f76d184
DittoPgStore: remove fulfillment batching
2025-05-08 19:42:10 -05:00
Alex Gleason
fd87bad238
Add subscriptions bytes metrics
2025-04-29 13:24:36 -05:00
Alex Gleason
808c3f70f5
Merge branch 'fix-logging-defaults' into 'main'
...
fix logging default config
See merge request soapbox-pub/ditto!735
2025-04-29 18:06:56 +00:00
Siddharth Singh
b75cc0e372
fix early return in jsonl path for log level
2025-04-29 23:34:46 +05:30
Siddharth Singh
319620a414
remove relative import from ditto/utils in DittoConf
2025-04-29 23:32:37 +05:30
Siddharth Singh
e2ce3f32c3
fix logging default config
2025-04-29 23:25:38 +05:30
Alex Gleason
f8d4fa57c6
Also don't log more expected SQL errors
2025-04-29 12:54:36 -05:00
Alex Gleason
49e509e420
Fix LOG_CONFIG parsing
2025-04-29 12:42:40 -05:00
Alex Gleason
3a849700db
KyselyLogger: don't log expected errors
2025-04-29 12:32:44 -05:00
Alex Gleason
3a260f7873
Merge branch '10x-better-logging' into 'main'
...
Make logging 10x better
See merge request soapbox-pub/ditto!734
2025-04-29 14:24:48 +00:00
Alex Gleason
f7c8024c2f
Merge branch 'mint-cashu' into 'main'
...
Allow users to mint for new tokens (cashu)
See merge request soapbox-pub/ditto!666
2025-04-22 15:34:19 +00:00
P. Reis
9d375f4afe
goose created files remove
2025-04-08 12:23:12 -03:00
P. Reis
fb7c57a1d0
Merge branch 'main' into mint-cashu
...
Conflicts:
packages/ditto/interfaces/DittoEvent.ts
packages/ditto/storages/hydrate.ts
2025-04-08 12:16:53 -03:00
P. Reis
aadc3079fa
refactor: make GET wallet a bit faster
2025-04-08 12:14:47 -03:00
Siddharth Singh
1b55932193
apply review fixes (thanks @alexgleason)
2025-04-08 17:09:05 +05:30
Siddharth Singh
8305cea81e
fmt ... again
2025-04-06 15:53:06 +05:30
Siddharth Singh
a1aed97dec
enable all subscopes of a given scope when it's supplied
2025-04-06 15:50:25 +05:30
Siddharth Singh
8f51a9d6d7
only show extra params when they are actually present
2025-04-06 15:46:24 +05:30
Siddharth Singh
1b19ff415a
add types to public api for dittoconf
2025-04-06 15:40:42 +05:30
Siddharth Singh
d3a15a699e
fmt
2025-04-06 15:33:36 +05:30
Siddharth Singh
82e7f854b9
replace logi handler
2025-04-06 15:28:54 +05:30
Siddharth Singh
6778a42d54
remove isCI conf var
2025-04-06 15:28:54 +05:30
Siddharth Singh
5dc2cc405f
add log configuration variables
2025-04-06 15:28:54 +05:30
Siddharth Singh
feab5f8cd0
stop logging every single query
2025-04-06 15:28:54 +05:30
Alex Gleason
63ebad0412
Merge branch 'client-tag-improvements' into 'main'
...
Client tag improvements
See merge request soapbox-pub/ditto!733
2025-04-03 17:48:06 +00:00
Alex Gleason
1c2d7a6793
Index client addr in search extensions
2025-04-03 12:38:39 -05:00
Alex Gleason
621d92dcf6
Render "client" tags in statuses even if they don't have an application handler event
2025-04-03 12:31:10 -05:00
Alex Gleason
0abee76e38
nip89: add ["t", "ditto"] tag to application handler event
2025-04-03 12:29:58 -05:00
Alex Gleason
c425a9d39a
DittoPgStore: index "client" tag
2025-04-03 12:29:45 -05:00
Alex Gleason
be5c58c615
Merge branch 'client-tag' into 'main'
...
Support NIP-89 "client" tag
See merge request soapbox-pub/ditto!732
2025-04-02 01:38:12 +00:00
Alex Gleason
23eb531305
Render client tags
2025-04-01 20:26:05 -05:00
Alex Gleason
caf59f4078
Insert NIP-89 "client" tags when users post statuses
2025-04-01 19:49:31 -05:00
Alex Gleason
c8b1c2050b
Publish nip89 application handler on startup
2025-04-01 18:55:36 -05:00
Alex Gleason
b56fe678f2
Merge branch 'fix-close' into 'main'
...
Fix relay always sending a CLOSED message after the client sends CLOSE
See merge request soapbox-pub/ditto!730
2025-03-28 22:53:05 +00:00
Alex Gleason
8dc9ea98e2
Fix relay always sending a CLOSED message after the client sends CLOSE
2025-03-28 17:50:51 -05:00
Alex Gleason
98c967dd22
Merge branch 'goosehints' into 'main'
...
Add .goosehints file
See merge request soapbox-pub/ditto!729
2025-03-28 21:24:08 +00:00
Alex Gleason
1a6c114a57
Fix inline codeblock in .goosehints
2025-03-28 16:22:03 -05:00
Alex Gleason
34a29c8f4e
NIP-11 improvements
2025-03-28 16:15:20 -05:00
Alex Gleason
278e13a6ef
Add .goosehints file
2025-03-28 16:08:28 -05:00
P. Reis
69fe86890f
feat: add accepts_zaps_cashu boolean field to DittoEvent and hydrate it
2025-03-27 09:48:29 -03:00
P. Reis
8a75f9e944
feat: implement GET statuses/:id{[0-9a-f]{64}}/nutzapped_by (with tests)
2025-03-26 15:55:59 -03:00
P. Reis
71a558a9de
Merge branch 'main' into mint-cashu
2025-03-25 18:23:13 -03:00
P. Reis
cda5196007
fix: remove unused import
2025-03-25 18:22:51 -03:00
P. Reis
7dc56f594b
feat: add zaps_amount_cashu to event_stats (with tests)
...
add zapped_cashu and zaps_amount_cashu field to MastodonStatus
2025-03-25 18:19:40 -03:00
P. Reis
83c96c88b7
feat: support pagination in GET transactions
...
remove getTransactions function and replace it with renderTransaction function (all tests updated)
2025-03-24 23:02:04 -03:00
Alex Gleason
95c10fd2b9
Merge branch 'fix-nip05-notification' into 'main'
...
Fix name grant notification not being rendered
See merge request soapbox-pub/ditto!728
2025-03-23 17:15:59 +00:00
Alex Gleason
06c9c8d898
Fix name grant notification not being rendered
2025-03-23 12:11:39 -05:00
Alex Gleason
1ff83212c4
Merge branch 'fix-index-k-tag' into 'main'
...
fix: index k tag even if the value is not a number and count is less than 3
See merge request soapbox-pub/ditto!727
2025-03-21 20:59:27 +00:00
P. Reis
4451aafadc
fix: index k tag even if the value is not a number and count is less than 3
2025-03-21 16:56:24 -03:00
P. Reis
1360484ae9
fix: call paginationSchema as a function
2025-03-21 10:49:58 -03:00
P. Reis
0b8b9e726a
Merge branch 'main' into mint-cashu
2025-03-21 10:47:49 -03:00
P. Reis
7226d503f5
fix(getTransactions): coerce tags to string in schema
...
This is not really needed but it doesn't hurt
2025-03-21 10:09:38 -03:00
P. Reis
d69854fa3c
fix: save amount tag value as a string
2025-03-21 10:07:34 -03:00
P. Reis
f9c4ec5835
feat: create GET transactions endpoint (with tests)
2025-03-20 14:02:43 -03:00
Alex Gleason
fab34dbf5b
Merge branch 'fix-mem-leak' into 'main'
...
Fix memory leak in relay?
See merge request soapbox-pub/ditto!726
2025-03-19 20:20:13 +00:00
Alex Gleason
8fc0092150
Fix memory leak in relay?
2025-03-19 15:15:44 -05:00
P. Reis
06ac326ec3
refactor: add relay of conf.relay in case no relays are present
2025-03-19 13:01:06 -03:00
P. Reis
feff31f094
feat: allow to edit the wallet mints and relays (with tests updated)
2025-03-18 18:30:52 -03:00
P. Reis
7c1297e865
fix: remove unused import
2025-03-17 22:48:43 -03:00
P. Reis
46ab6005d1
fix: https://jsr.io/go/slow-type-missing-explicit-type
2025-03-17 22:47:38 -03:00
P. Reis
5ff8bf4479
refactor: remove useless comments
2025-03-17 22:41:36 -03:00
P. Reis
355c53fd64
refactor: create getWallet function, with tests
2025-03-17 22:28:36 -03:00
P. Reis
07d0d4c4e5
fix: only create kind 5 if there are events to delete
2025-03-17 11:12:30 -03:00
P. Reis
c344cb6b74
refactor: call organizeProofs in a try-catch block
2025-03-17 11:10:08 -03:00
P. Reis
6afa0bb7f1
refactor: simplify deletion of expired quote ids expiredQuoteIds
2025-03-17 11:01:11 -03:00
Alex Gleason
497b02002e
streaming: ensure close handler is called even when socket is closed by server
2025-03-16 18:02:28 -05:00
Alex Gleason
f27609feb8
Set a max subscriptions size per connection
2025-03-16 17:51:07 -05:00
P. Reis
0a05dd232c
fix: only create new kind 7375 if there is proofs to keep
2025-03-15 20:48:33 -03:00
P. Reis
a719c2aabf
fix: add swapNutzapsMiddleware to nutzap endpoint
2025-03-15 20:33:01 -03:00
P. Reis
0e0166419e
test(nutzap): add more checks
2025-03-15 20:32:20 -03:00
Alex Gleason
a6b58b50cf
Merge branch 'custom-reacts' into 'main'
...
Support custom emoji reactions
See merge request soapbox-pub/ditto!724
2025-03-15 22:21:09 +00:00
Alex Gleason
09b0bf8ef4
Test paginationSchema with a custom limit
2025-03-15 17:20:26 -05:00
Alex Gleason
88ef8087a5
Let paginationMiddleware be configurable, add pagination to reactions handler
2025-03-15 17:18:18 -05:00
Alex Gleason
36ffd4283a
Fix DittoPgStore req test
2025-03-15 17:03:20 -05:00
Alex Gleason
006a96d0eb
Disable notify in tests
2025-03-15 16:50:26 -05:00
Alex Gleason
66979c7c11
Disallow +/- emojis in Pleroma API
2025-03-15 16:42:34 -05:00
Alex Gleason
be922bf07f
Enable pleroma_custom_emoji_reactions feature in instance endpoint
2025-03-15 16:37:00 -05:00
Alex Gleason
753413f071
Support custom emoji reactions
2025-03-15 16:32:11 -05:00
Alex Gleason
c40c6e8b30
Support custom emoji reactions in event_stats
2025-03-15 15:31:24 -05:00
Alex Gleason
755ed884d4
Pleroma API supports custom emojis with or without colons
2025-03-15 15:01:07 -05:00
Alex Gleason
1dd50e2e63
Add tests for pleromaStatusesRoute
2025-03-15 14:38:19 -05:00
Alex Gleason
f27dac342f
Small refactors to pleromaStatusesRoute
2025-03-15 13:57:06 -05:00
Alex Gleason
2f65be7dc4
Move reaction controllers to pleromaStatusesRoute
2025-03-15 13:49:42 -05:00
Alex Gleason
55a171fd2c
Merge remote-tracking branch 'origin/main' into custom-reacts
2025-03-15 13:42:00 -05:00
Alex Gleason
c2f214c9bc
Merge branch 'mw-cleanup' into 'main'
...
Remove redundant userMiddleware usages in app.ts
See merge request soapbox-pub/ditto!723
2025-03-15 18:41:43 +00:00
Alex Gleason
c9b0ffb537
Remove redundant userMiddleware usages in app.ts
2025-03-15 13:26:55 -05:00
Alex Gleason
ed0a8dc36b
Merge branch 'emoji-unauth' into 'main'
...
Allow custom_emojis endpoint to be accessed without a user
See merge request soapbox-pub/ditto!722
2025-03-15 18:24:52 +00:00
Alex Gleason
66dcf98a22
Allow reacting with custom emoji
2025-03-15 13:24:02 -05:00
Alex Gleason
e5dd285e6b
Allow custom_emojis endpoint to be accessed without a user
2025-03-15 12:50:05 -05:00
Alex Gleason
d0d400901c
Merge branch 'custom-emojis' into 'main'
...
Implement custom emojis
See merge request soapbox-pub/ditto!721
2025-03-15 05:22:14 +00:00
Alex Gleason
974e07981e
getCustomEmojis: new Map() -> emojis
2025-03-15 00:19:50 -05:00
Alex Gleason
28275b7611
Insert "emoji" tags into statuses
2025-03-15 00:16:52 -05:00
Alex Gleason
b1a1ace0ac
Refactor getCustomEmojis function, support emoji categories
2025-03-14 23:58:42 -05:00
Alex Gleason
f15b6f79c0
Implement custom emojis
2025-03-14 23:36:53 -05:00
P. Reis
e1d2139c31
test: POST nutzap endpoint, with full mocks
2025-03-14 19:30:50 -03:00
P. Reis
6a24ca126a
refactor(cashu): move each fetch mock to its own test
2025-03-13 17:26:40 -03:00
P. Reis
cfdd5e1929
Merge branch 'main' into mint-cashu
2025-03-13 11:51:20 -03:00
Alex Gleason
bfe693c2f8
Merge branch 'fix-pglite-closed' into 'main'
...
fix: Error: PGlite is closed
See merge request soapbox-pub/ditto!720
2025-03-13 14:45:40 +00:00
P. Reis
bc0580dd05
fix: Error: PGlite is closed
2025-03-13 10:45:03 -03:00
P. Reis
921f478279
Merge branch 'main' into mint-cashu
2025-03-13 10:41:17 -03:00
Alex Gleason
60fbe70212
Merge branch 'strip-media-space' into 'main'
...
Strip media URLs regardless of whitespace delimiter
See merge request soapbox-pub/ditto!719
2025-03-12 21:55:42 +00:00
Alex Gleason
80fcda2b01
Fix matching multiple whitespace characters at the end of a string
2025-03-12 16:53:22 -05:00
Alex Gleason
69a9534463
removeTrailingUrls -> removeTrailingTokens
2025-03-12 16:48:31 -05:00
Alex Gleason
bd71b45a8d
Strip media URLs regardless of whitespace delimiter
2025-03-12 16:46:32 -05:00
P. Reis
37d81cf2a2
Merge branch 'main' into mint-cashu
2025-03-12 17:08:02 -03:00
Alex Gleason
2e4456dba2
Merge branch 'legacy-media-strip' into 'main'
...
Hide media URLs from posts without imeta tags
See merge request soapbox-pub/ditto!717
2025-03-12 17:04:00 +00:00
Alex Gleason
eec78efc0e
Hide media URLs from posts without imeta tags
2025-03-12 11:56:04 -05:00
P. Reis
8d0b5ba078
test: getMintsToProofs works
2025-03-12 13:15:52 -03:00
P. Reis
803b2abacc
fix: add explicit return type - tokenEventSchema
2025-03-11 12:23:04 -03:00
P. Reis
dc711bce6a
fix: add explicit return type
2025-03-11 11:49:39 -03:00
P. Reis
a002b1a005
refactor: create @ditto/cashu package
2025-03-11 11:34:42 -03:00
P. Reis
1c709b04be
Merge branch 'main' into mint-cashu
2025-03-10 10:46:01 -03:00
Alex Gleason
0264b16553
Merge branch 'remove-console-log' into 'main'
...
refactor: remove console.logs
See merge request soapbox-pub/ditto!716
2025-03-09 21:56:12 +00:00
P. Reis
3e35102e13
refactor: remove console.logs
2025-03-09 13:02:53 -03:00
Alex Gleason
592d6c1d36
Upgrade gleasonator-policy in deno.lock
2025-03-08 21:03:58 -06:00
Alex Gleason
026568ea71
Fix firehose
2025-03-08 21:03:36 -06:00
Alex Gleason
6b3f5ac8a6
Expose db to custom policy script
2025-03-08 20:44:22 -06:00
Alex Gleason
a400021a0d
Bump signal to 5s
2025-03-08 19:44:16 -06:00
Alex Gleason
3cac9b6e26
Merge branch 'link-preview-db' into 'main'
...
Store link previews in the database
Closes #301
See merge request soapbox-pub/ditto!715
2025-03-09 01:39:56 +00:00
Alex Gleason
26990bcf5e
Remove linkPreview cache config, rm stray console.log
2025-03-08 19:36:53 -06:00
Alex Gleason
affea45a08
Store link previews in the database
...
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/301
2025-03-08 19:33:15 -06:00
Alex Gleason
1abe487115
Merge branch 'lookup' into 'main'
...
Look up identifiers in search on remote relays
See merge request soapbox-pub/ditto!714
2025-03-09 00:41:53 +00:00
Alex Gleason
f01b4c0791
Look up identifiers in search on remote relays
2025-03-08 18:36:24 -06:00
Alex Gleason
478debfda1
Merge branch 'outboxy-req-router' into 'main'
...
Add an outboxy-style REQ router
See merge request soapbox-pub/ditto!713
2025-03-08 21:52:17 +00:00
Alex Gleason
239c427c78
Add DittoPool tests
2025-03-08 15:46:02 -06:00
Alex Gleason
920e558c06
Add an outboxy-style REQ router
2025-03-08 15:29:31 -06:00
Alex Gleason
7248aaf6c6
Merge branch 'req-abort' into 'main'
...
Fix REQ abort logic
See merge request soapbox-pub/ditto!712
2025-03-08 05:01:13 +00:00
Alex Gleason
e085082a76
Fix REQ abort logic
2025-03-07 22:58:55 -06:00
Alex Gleason
413056e841
Prewarm cards only for kind 1
2025-03-07 16:31:01 -06:00
Alex Gleason
f12cce9802
Merge branch 'fix-relay-close' into 'main'
...
Ensure relay close handler is called
See merge request soapbox-pub/ditto!711
2025-03-07 18:52:06 +00:00
Alex Gleason
5162e051ad
Ensure relay close handler is called
2025-03-07 12:34:47 -06:00
Alex Gleason
f8eb4fc79c
Add a metric for active author subscriptions
2025-03-06 22:55:23 -06:00
Alex Gleason
9c3307f923
Purify event before sending it out to relay
2025-03-06 15:38:14 -06:00
Alex Gleason
e5e0ddd7aa
DittoPgStore: purify events before streaming them
2025-03-06 15:34:31 -06:00
Alex Gleason
6eace14850
Merge branch 'fetch-authors' into 'main'
...
Automatically fetch missing authors from pool
See merge request soapbox-pub/ditto!710
2025-03-06 21:12:43 +00:00
Alex Gleason
e85e89e0af
Automatically fetch missing authors from pool
2025-03-06 14:55:40 -06:00
Alex Gleason
1ab77fdeab
Merge branch 'fix-revoke-nip05' into 'main'
...
fix(attempt): revoke username
See merge request soapbox-pub/ditto!700
2025-03-05 23:31:17 +00:00
P. Reis
e549a9d34a
refactor: stop fetching author and set nip05_last_verified_at to null
2025-03-05 20:28:22 -03:00
P. Reis
9e726baa2a
refactor: remove try catch
2025-03-05 20:15:16 -03:00
P. Reis
1eb1f4206d
refactor: use db.kysely.updateTable rather than db.kysely.insertInto
2025-03-05 20:12:42 -03:00
P. Reis
19244aec2c
test/fix: use waitFor function
2025-03-05 19:35:25 -03:00
Alex Gleason
811a56e406
ci: try moving the timeout to the actual test job
2025-03-05 15:05:26 -06:00
Alex Gleason
9b422d8e31
Add note about hanging queries in DittoPostgres test
2025-03-05 14:47:35 -06:00
Alex Gleason
0b72533b05
DittoPglite: test that queries reject after it's closed
2025-03-05 14:06:13 -06:00
Alex Gleason
4e0479f7c8
Add DittoPostgres test
2025-03-05 13:27:34 -06:00
Alex Gleason
c7175f8301
ci: add 2 minute timeout
2025-03-05 13:02:01 -06:00
Alex Gleason
f3bdabc13a
DittoRelayStore: improve error handling around this.listen(), remove await
2025-03-05 12:44:16 -06:00
P. Reis
842150b6e2
fix: remove useless 'p' tag in admin kind 5 event
2025-03-05 11:33:57 -03:00
P. Reis
fc4f5fd522
Merge branch 'main' into fix-revoke-nip05
...
Conflicts:
packages/ditto/storages/DittoRelayStore.test.ts
2025-03-05 11:25:04 -03:00
P. Reis
d8a0eca891
refactor: get author from grant event (30360), before doing the admin deletion
2025-03-05 11:22:07 -03:00
P. Reis
dd5397e795
test: check if nip05 exists and then check again to see if it's null
2025-03-05 11:02:13 -03:00
P. Reis
dfff63fab4
fix: await Promise.allSettled
2025-03-05 11:00:28 -03:00
Alex Gleason
b5858dd54c
Catch pool.query
2025-03-04 23:09:20 -06:00
Alex Gleason
815b903e28
Add a timeout on pool.query
2025-03-04 23:07:45 -06:00
Alex Gleason
773cee8b92
Merge branch 'fetch-related' into 'main'
...
Fetch related events by ID through the RelayStore
See merge request soapbox-pub/ditto!709
2025-03-05 04:28:48 +00:00
Alex Gleason
c5e9017d24
Fetch related events by ID through the RelayStore
2025-03-04 22:14:56 -06:00
P. Reis
ab6054efe8
Merge branch 'main' into fix-revoke-nip05
...
Conflicts:
packages/ditto/controllers/api/admin.ts
packages/ditto/storages/DittoRelayStore.test.ts
2025-03-04 14:53:21 -03:00
P. Reis
aa1311ccae
fix: call store.event
2025-03-04 11:42:42 -03:00
P. Reis
c5fdc97e58
refactor: stop returning author
2025-03-04 10:51:10 -03:00
Alex Gleason
c39ea9212f
Lowercase all captcha bg filenames for suitability in a URL path
2025-03-03 19:37:35 -06:00
Alex Gleason
29109cec21
Give @ditto/ditto 1.1.0
2025-03-03 19:34:05 -06:00
Alex Gleason
2ca216dfdf
Set all packages to version 0.1.0
2025-03-03 19:31:41 -06:00
P. Reis
44d525eccb
fix: use author pubkey, not admin pubkey
2025-03-03 21:17:17 -03:00
Alex Gleason
363816d930
Fix nostr.json cache by returning non-200 status
2025-03-03 17:10:46 -06:00
Alex Gleason
ff4c3381ba
Merge branch 'feat-promove-admin' into 'main'
...
feat: promote users to admin
Closes #298
See merge request soapbox-pub/ditto!707
2025-03-03 22:56:18 +00:00
Alex Gleason
0d1b7b8d37
Fix DittoRoute test
2025-03-03 16:53:54 -06:00
Alex Gleason
8528c4c39e
Add more permission group tests
2025-03-03 16:36:38 -06:00
Alex Gleason
b7bf2fc76f
Move Pleroma permission_groups controller to its own routes file, add tests
2025-03-03 16:33:28 -06:00
Alex Gleason
d29bc8c020
Merge remote-tracking branch 'origin/main' into feat-promove-admin
2025-03-03 16:00:16 -06:00
Alex Gleason
a2f019993d
Simplify promote controller
2025-03-03 15:58:13 -06:00
Alex Gleason
10ea6f7635
Merge branch 'name-request-refactor' into 'main'
...
Name request refactor
See merge request soapbox-pub/ditto!708
2025-03-03 21:48:18 +00:00
P. Reis
7525cd6ef9
refactor: set nip05 to null in handleRevokeNip05 function
2025-03-03 18:42:26 -03:00
Alex Gleason
bcd2ed18ef
Fix error handling of DittoRoute
2025-03-03 15:41:24 -06:00
Alex Gleason
b8b6174fcc
Test that DittoRelayStore generates nip05 request set event
2025-03-03 15:24:26 -06:00
Alex Gleason
0dd085b559
Remove old testApp
2025-03-03 14:46:05 -06:00
Alex Gleason
9be9f7c9d0
Add tests for dittoNameRoute
2025-03-03 14:39:01 -06:00
P. Reis
28c3b07a3e
fix: remove unused imports
2025-03-03 17:34:13 -03:00
P. Reis
3bcf716795
refactor: simplify promote user to admin
2025-03-03 17:32:28 -03:00
Alex Gleason
14b809b1e8
db: add TestDB module
2025-03-03 12:21:02 -06:00
Alex Gleason
a21ec4600a
Move /api/v1/ditto/names to a DittoRoute
2025-03-03 11:50:49 -06:00
Alex Gleason
59ad40fb3f
Remove extra space
2025-03-02 18:03:21 -06:00
Alex Gleason
484625842b
Skip ffmpeg tests in CI
2025-03-02 18:02:03 -06:00
Alex Gleason
ac0285293e
Remove pipelineEncounters.ts
2025-03-02 14:06:15 -06:00
Alex Gleason
2415dbe4e5
Merge branch 'transcode' into 'main'
...
Transcode uploaded videos with ffmpeg
See merge request soapbox-pub/ditto!706
2025-03-02 05:41:29 +00:00
Alex Gleason
7e8ff1f329
Get video dimensions from frame
2025-03-01 22:15:32 -06:00
Alex Gleason
5168ccd748
Write uploads to disk so ffmpeg can seek properly
2025-03-01 20:59:14 -06:00
Alex Gleason
c2e6e10a3a
Don't call ffprobe unless mediaTranscode is enabled
2025-03-01 18:03:57 -06:00
Alex Gleason
3035ecaca9
Make transcoding optional, refactor a bit
2025-03-01 17:45:01 -06:00
Alex Gleason
414a3b7651
Let FFMPEG_PATH and FFPROBE_PATH be configurable
2025-03-01 17:01:39 -06:00
Alex Gleason
8a94be803d
Give transcoded videos the proper file type
2025-03-01 16:39:09 -06:00
Alex Gleason
8c61efd75e
Improve blurhash performance of HD images
2025-03-01 13:56:17 -06:00
Alex Gleason
9051a59733
Measure performance of uploads
2025-03-01 13:09:42 -06:00
Alex Gleason
bd4c94852f
Call ffprobe, improve transcoding
2025-02-28 21:21:30 -06:00
Alex Gleason
2533d2f469
Support readable in extractVideoFrame
2025-02-28 20:52:11 -06:00
Alex Gleason
a28e6509fd
Make analyze return a lot more information
2025-02-28 19:48:53 -06:00
Alex Gleason
ad9cc676e6
Improve getVideoDimensions
2025-02-28 18:41:13 -06:00
Alex Gleason
5f10f92d4e
Let ffprobe pipe data to stdin
2025-02-28 18:29:41 -06:00
P. Reis
c79867d8ca
feat: promote users to admin
2025-02-28 18:25:34 -03:00
Alex Gleason
d70a00a8ca
Expose thumb and image to Attachment view, don't set thumb (since it's redundant with image)
2025-02-28 10:51:08 -06:00
Alex Gleason
6774975051
Get blurhash and dimensions of video
2025-02-28 10:24:45 -06:00
Alex Gleason
7ecca587a9
ffmpeg: explicitly set stdin to null
2025-02-28 10:20:47 -06:00
Alex Gleason
aeaa60df45
transcode: add -nostdin -safe 1
2025-02-28 10:17:39 -06:00
Alex Gleason
43ec58085a
Extract a poster image from videos (not efficient yet)
2025-02-28 09:58:28 -06:00
Alex Gleason
813026e734
Transcode video before uploading
2025-02-28 09:36:49 -06:00
P. Reis
dcfdfb1c7f
Merge branch 'main' into mint-cashu
...
Conflicts:
packages/ditto/controllers/api/cashu.ts
2025-02-28 10:51:02 -03:00
P. Reis
822f623018
refactor: this.handleRevokeNip05 before relay.event
2025-02-28 10:19:10 -03:00
Alex Gleason
26ca4aa7f7
Go back to just installing ffmpeg with apt
2025-02-28 00:01:28 -06:00
Alex Gleason
57c1871852
Try installing ffmpeg with curl
2025-02-27 23:54:06 -06:00
Alex Gleason
39821f8371
Install ffmpeg in GitLab CI
2025-02-27 23:47:27 -06:00
Alex Gleason
4f2aad9c5d
Export stuff from transcode/mod.ts
2025-02-27 23:42:29 -06:00
Alex Gleason
8f02c4125a
Add ffprobe module
2025-02-27 23:38:57 -06:00
Alex Gleason
e46b7bfa85
Rework ffmpeg to accept file URIs
2025-02-27 23:19:27 -06:00
Alex Gleason
d36efb7a30
transcode: export existing code in mod.ts
2025-02-27 22:06:03 -06:00
Alex Gleason
6ce64822e1
Split transcode and ffmpeg into separate modules
2025-02-27 21:59:19 -06:00
Alex Gleason
bb13a8dc71
Add ffmpeg module
2025-02-27 21:34:05 -06:00
Alex Gleason
bd47ae5930
Add @ditto/transcode package
2025-02-27 21:22:19 -06:00
Alex Gleason
462c00a3e7
transcode: simplify pipe
2025-02-27 20:16:25 -06:00
Alex Gleason
044930cc8d
transcodeVideoStream -> transcodeVideo
2025-02-27 20:08:26 -06:00
Alex Gleason
25d5db8db6
transcode: use a structured object for ffmpeg options
2025-02-27 20:07:28 -06:00
Alex Gleason
82f16e0cfe
Add transcode module
2025-02-27 20:01:11 -06:00
Alex Gleason
5fc874b768
Merge branch 'deno-2.2.2' into 'main'
...
Upgrade Deno to v2.2.2
See merge request soapbox-pub/ditto!705
2025-02-28 01:21:25 +00:00
Alex Gleason
96c845205b
Upgrade Deno to v2.2.2
2025-02-27 19:19:33 -06:00
Alex Gleason
381cbfd36f
Add ip to logiMiddleware
2025-02-27 18:24:05 -06:00
Alex Gleason
d458fc8464
Merge branch 'request-id' into 'main'
...
Add requestId middleware
See merge request soapbox-pub/ditto!704
2025-02-28 00:10:49 +00:00
Alex Gleason
368bf91b1f
Log requestId in some convenient spots
2025-02-27 18:08:55 -06:00
Alex Gleason
0cdb7b8cd5
Add requestId middleware
2025-02-27 17:57:22 -06:00
Alex Gleason
f683642478
Merge branch 'upload-conf' into 'main'
...
Remove `@/config.ts` import from utils/upload.ts
See merge request soapbox-pub/ditto!703
2025-02-27 23:37:57 +00:00
Alex Gleason
ee58a9f265
Merge branch 'metadata-conf' into 'main'
...
Remove `@/config.ts` import from utils/instance.ts
See merge request soapbox-pub/ditto!702
2025-02-27 23:34:46 +00:00
Alex Gleason
1bce9e2982
Remove @/config.ts import from utils/upload.ts
2025-02-27 17:34:35 -06:00
Alex Gleason
2acd23ebbe
Remove @/config.ts import from utils/instance.ts
2025-02-27 17:32:54 -06:00
Alex Gleason
f7ab4a6763
Merge branch 'stats-conf' into 'main'
...
Remove `@/config.ts` import from utils/stats.ts
See merge request soapbox-pub/ditto!701
2025-02-27 22:58:12 +00:00
Alex Gleason
70d8c2ed59
DittoPgStore: destructure conf
2025-02-27 16:54:12 -06:00
Alex Gleason
7e00b9f9a2
Add PolicyWorker test
2025-02-27 16:52:09 -06:00
Alex Gleason
5f5d0bc324
Remove @/config.ts import from utils/stats.ts
2025-02-27 16:35:06 -06:00
P. Reis
4792e568ef
fix: event.pubkey, not event.id in p tag
2025-02-27 19:15:33 -03:00
P. Reis
e6f4f8d23e
fix(attempt): revoke username
2025-02-27 19:10:13 -03:00
Alex Gleason
ddf1a9d6dc
Merge branch 'pleroma-conf' into 'main'
...
Remove `@/config.ts` import from utils/pleroma.ts
See merge request soapbox-pub/ditto!699
2025-02-27 20:27:21 +00:00
Alex Gleason
7fe06753aa
Remove @/config.ts import from utils/pleroma.ts
2025-02-27 14:25:09 -06:00
Alex Gleason
fa0add60d5
Merge branch 'note-conf' into 'main'
...
Remove `@/config.ts` import from utils/note.ts
See merge request soapbox-pub/ditto!698
2025-02-27 20:16:53 +00:00
Alex Gleason
0e667995c1
Remove @/config.ts import from utils/note.ts
2025-02-27 14:15:02 -06:00
Alex Gleason
c07c88f2f5
Merge branch 'zapsplit-conf' into 'main'
...
Remove `@/config.ts` import from utils/zap-split.ts
See merge request soapbox-pub/ditto!697
2025-02-27 20:04:34 +00:00
Alex Gleason
2266152df3
Remove @/config.ts import from utils/zap-split.ts
2025-02-27 14:02:44 -06:00
Alex Gleason
549f3ebc5d
Merge branch 'conf-tests' into 'main'
...
Remove `@/config.ts` imports from tests
See merge request soapbox-pub/ditto!696
2025-02-27 19:57:48 +00:00
Alex Gleason
23b8edefef
Remove @/config.ts imports from tests
2025-02-27 13:56:02 -06:00
Alex Gleason
4b1d7c1502
Merge branch 'sentry-conf' into 'main'
...
Remove `@/config.ts` import when starting Sentry
See merge request soapbox-pub/ditto!695
2025-02-27 19:53:51 +00:00
Alex Gleason
432f65ff61
Remove @/config.ts import when starting Sentry
2025-02-27 13:51:57 -06:00
Alex Gleason
92da5e6ac3
Actually fix policy.worker import (hack)
2025-02-26 18:19:30 -06:00
Alex Gleason
55115d3592
PolicyWorker: move Deno.env set above imports
2025-02-26 18:14:42 -06:00
Alex Gleason
ccf6d2074e
Merge branch 'mastoapi-entities' into 'main'
...
Move ditto/interfaces to @ditto/mastoapi/types
See merge request soapbox-pub/ditto!693
2025-02-27 00:03:45 +00:00
Alex Gleason
b81da2c0d7
Move ditto/interfaces to @ditto/mastoapi/types
2025-02-26 18:01:32 -06:00
P. Reis
7e4e6635ad
fix: type error
2025-02-26 20:54:11 -03:00
P. Reis
53f83f78c7
Merge branch 'main' into mint-cashu
2025-02-26 20:48:38 -03:00
P. Reis
8479143ed8
refactor: minimalist check of status_id and account_id
2025-02-26 20:48:12 -03:00
Alex Gleason
466245633c
Merge branch 'fix-ensure-remove-exists' into 'main'
...
fix: call remove if it's available
See merge request soapbox-pub/ditto!692
2025-02-26 23:43:25 +00:00
P. Reis
0f20f1b26b
refactor: return 500 http code in case of error
2025-02-26 20:21:42 -03:00
P. Reis
0c7ab03643
refactor: use ?.
2025-02-26 20:06:57 -03:00
P. Reis
40824280b4
fix: call remove if it's available
2025-02-26 19:53:55 -03:00
Alex Gleason
ec3fa3daeb
Merge branch 'rm-config' into 'main'
...
Remove precheck.ts, perform check in DittoConf constructor
See merge request soapbox-pub/ditto!691
2025-02-26 22:30:27 +00:00
Alex Gleason
f650541b23
Remove precheck.ts, perform check in DittoConf constructor
2025-02-26 16:16:40 -06:00
Alex Gleason
7256b5dcf8
Merge branch 'dittoapp-opts' into 'main'
...
DittoApp: combine opts and vars into one object
See merge request soapbox-pub/ditto!690
2025-02-26 21:21:21 +00:00
Alex Gleason
89905d76a6
DittoApp: combine opts and vars into one object
2025-02-26 15:19:20 -06:00
Alex Gleason
c889cd68d2
Merge branch 'ditto-captcha' into 'main'
...
Add @ditto/captcha package
See merge request soapbox-pub/ditto!689
2025-02-26 21:14:25 +00:00
Alex Gleason
4b55acb796
Clean up captchaController
2025-02-26 15:10:41 -06:00
Alex Gleason
a2aaa55b89
Add tests to captcha modules
2025-02-26 15:09:01 -06:00
Alex Gleason
5f617b2d1a
Break captcha package into smaller modules
2025-02-26 14:53:13 -06:00
Alex Gleason
a2732642a5
Break @ditto/captcha into a separate library
2025-02-26 14:46:47 -06:00
Alex Gleason
4b321f21fc
Merge branch 'refactor-remove-await' into 'main'
...
refactor: remove await
See merge request soapbox-pub/ditto!688
2025-02-26 14:30:54 +00:00
P. Reis
1730274e70
refactor: remove await
2025-02-26 11:19:15 -03:00
Alex Gleason
e17360d49c
Merge branch 'fix-mentions-bug' into 'main'
...
fix: filter out invalid pubkeys
Closes #290
See merge request soapbox-pub/ditto!687
2025-02-25 23:26:22 +00:00
P. Reis
c82cfb9e8b
refactor: remove duplicate filter
2025-02-25 20:16:28 -03:00
P. Reis
05a4a5a5c9
fix: filter out invalid pubkeys
2025-02-25 20:04:28 -03:00
P. Reis
cf4d888ad5
fix: total balance can be equal to the amount, access undefined with ?
2025-02-25 16:20:40 -03:00
P. Reis
e08603a42a
fix: get lock pubkey from nutzap info
2025-02-25 15:59:40 -03:00
P. Reis
51faffc9e2
fix: get mints from nutzap info
2025-02-25 15:56:41 -03:00
P. Reis
33b8078fc6
fix: add pubkey lock to proofs
2025-02-25 13:58:57 -03:00
P. Reis
99a20bd129
Merge branch 'main' into mint-cashu
...
Conflicts:
packages/ditto/controllers/api/cashu.ts
packages/ditto/middleware/swapNutzapsMiddleware.ts
2025-02-24 20:07:12 -03:00
P. Reis
1d2a317029
feat: nutzap a post or user (no tests)
2025-02-24 17:34:14 -03:00
Alex Gleason
73beef72ac
Merge branch 'pool-whoops' into 'main'
...
Switch the pools, whoops
See merge request soapbox-pub/ditto!686
2025-02-24 14:51:55 +00:00
Alex Gleason
11a589fb01
Switch the pools, whoops
2025-02-24 08:50:06 -06:00
Alex Gleason
e78e0c2460
Upgrade Nostrify
2025-02-23 23:08:46 -06:00
Alex Gleason
40221410e8
Merge branch 'apistore' into 'main'
...
Replace pipeline with DittoAPIStore
See merge request soapbox-pub/ditto!685
2025-02-24 03:05:42 +00:00
Alex Gleason
9df50a5b0d
app.ts: minor variable name cleanup
2025-02-23 20:53:48 -06:00
Alex Gleason
751c09035c
Pass DittoAPIStore to MastoAPI endpoints, DittoRelayStore to /relay
2025-02-23 19:41:17 -06:00
Alex Gleason
cce78f2b0c
Make DittoAPIStore and DittoRelay separate things
2025-02-23 18:54:04 -06:00
P. Reis
61cc7c335a
feat: create organizedProofs function
...
test: organizedProofs function
2025-02-23 21:06:34 -03:00
Alex Gleason
52a9017730
Add a new DittoAPIStore extending DittoRelayStore
2025-02-23 18:03:41 -06:00
Alex Gleason
ec498653fb
Rename DittoAPIStore to DittoRelayStore
2025-02-23 18:02:45 -06:00
Alex Gleason
77c0ac3561
Hotfix for relay publishing
2025-02-23 14:55:19 -06:00
Alex Gleason
e88a7d01d4
Purify event before sending to pool
2025-02-23 14:50:45 -06:00
Alex Gleason
e99496306a
DittoAPIStore: fix handleEvent not being called
2025-02-23 13:08:19 -06:00
Alex Gleason
44f3721d36
DittoAPIStore: test that kind 0 with nip05 updates author_stats table
2025-02-23 12:41:59 -06:00
Alex Gleason
3f9f0468d2
Remove now unnecessary idleTimeout opt from socket upgrades
2025-02-23 12:05:53 -06:00
Alex Gleason
decb3ac618
Fix streaming API hydration ( ͡° ͜ʖ ͡°)
2025-02-23 11:56:29 -06:00
Alex Gleason
a52fe9fbc6
Try to fix pkey migration
2025-02-23 09:30:00 -06:00
Alex Gleason
02d4235abd
Rename nostr_events_new_pkey to nostr_events_pkey
2025-02-23 09:21:14 -06:00
Alex Gleason
497d5d12c9
Fix DittoPgStore tests
2025-02-23 00:39:41 -06:00
Alex Gleason
a9c696936b
Upgrade Nostrify
2025-02-23 00:11:42 -06:00
Alex Gleason
237f6e55ad
Fix DittoEnv type check
2025-02-22 21:52:26 -06:00
Alex Gleason
f1cb8c778a
Normalize Link header URLs
2025-02-22 21:45:04 -06:00
Alex Gleason
7f059b4dac
Fix event hydration with getEvent/getAuthor
2025-02-22 21:40:53 -06:00
Alex Gleason
6f1312b67f
Remove old paginationSchema
2025-02-22 21:38:48 -06:00
Alex Gleason
979f2cffb4
Fix stats:recompute script
2025-02-22 21:30:57 -06:00
Alex Gleason
1ae9da5793
Fix hydrate tests
2025-02-22 21:26:23 -06:00
Alex Gleason
6cd64500ce
Fix stats test
2025-02-22 21:24:43 -06:00
Alex Gleason
4f46a69131
I did a fucked up polymorphism
2025-02-22 20:56:53 -06:00
Alex Gleason
f893a81464
DittoAPIStore: add limit 0
2025-02-22 19:55:58 -06:00
Alex Gleason
70f0eb3b03
Fix pagination lint errors
2025-02-22 19:49:43 -06:00
Alex Gleason
f2e2072184
Export PolicyWorker as a regular class
2025-02-22 19:46:38 -06:00
Alex Gleason
3b17fd9b45
Remove @/storages.ts (jesus christ)
2025-02-22 19:27:53 -06:00
Alex Gleason
ca5c887705
Remove storages.ts from scripts
2025-02-22 15:54:31 -06:00
Alex Gleason
63c0f8b032
ditto/db: make adapters use classes instead of static classes
2025-02-22 15:32:47 -06:00
Alex Gleason
398d79b45e
DittoAPIStore: console.error -> logi
2025-02-22 13:05:50 -06:00
Alex Gleason
79fc568548
Add DittoPool class
2025-02-22 12:59:36 -06:00
Alex Gleason
2f0dbc44e4
Copy all the pipeline logic into DittoAPIStore (and some into DittoPgStore)
2025-02-22 12:01:50 -06:00
Alex Gleason
48bd7618f7
Start building DittoAPIStore
2025-02-22 03:13:05 -06:00
Alex Gleason
02e284f3aa
Remove unused DittoFilter interface
2025-02-22 01:06:53 -06:00
Alex Gleason
045eb4e1d6
Merge branch 'router' into 'main'
...
Switch to @ditto/router
See merge request soapbox-pub/ditto!683
2025-02-22 07:05:11 +00:00
Alex Gleason
4ed0640766
@ditto/router -> @ditto/mastoapi/router
2025-02-21 23:32:15 -06:00
Alex Gleason
ecb2b8d8f1
Merge branch 'lowercase-nip05' into 'main'
...
Make NIP-05 case insensitive
See merge request soapbox-pub/ditto!684
2025-02-22 03:59:20 +00:00
Alex Gleason
084c6aa944
Fix DummyDB test
2025-02-21 21:55:00 -06:00
Alex Gleason
8ef03e7926
Merge remote-tracking branch 'origin/lowercase-nip05' into router
2025-02-21 21:54:32 -06:00
Alex Gleason
6c70b4bc4e
Make NIP-05 case insensitive
2025-02-21 21:51:33 -06:00
Alex Gleason
07b68b71d2
Add missing types to testApp
2025-02-21 21:31:42 -06:00
Alex Gleason
9c97cc387f
mastoapi: add a test module
2025-02-21 21:15:57 -06:00
Alex Gleason
d4fc10fe3e
Add userMiddleware tests
2025-02-21 21:09:22 -06:00
Alex Gleason
403b16a67b
Merge remote-tracking branch 'origin/main' into router
2025-02-21 20:51:33 -06:00
Alex Gleason
4cfb6543c7
Don't lowercase nip05 name before fetching (for now)
2025-02-21 20:50:09 -06:00
Alex Gleason
8437da1200
Fix error handling in nameRequestController
2025-02-21 20:33:44 -06:00
Alex Gleason
5fec5deb06
publishEvent: publish to pool in background, catch errors and log
2025-02-21 20:22:58 -06:00
Alex Gleason
82446e3ef1
Add method and pathname to ditto.http error
2025-02-21 20:06:39 -06:00
Alex Gleason
d2abb1f1e4
Fix MuteListPolicy test
2025-02-21 18:59:14 -06:00
Alex Gleason
6b1aadc24c
nip98: add explicit types to exported functions
2025-02-21 18:46:43 -06:00
Alex Gleason
26e87b3962
tokenMiddleware: pass token to streaming API
2025-02-21 17:44:56 -06:00
Alex Gleason
806bfc1b45
Delete auth98Middleware, replace with userMiddleware
2025-02-21 16:54:38 -06:00
Alex Gleason
adeff1cae5
tokenMiddleware: support nip98 auth
2025-02-21 15:53:29 -06:00
Alex Gleason
f0add87c6d
Create @ditto/nip98 package
2025-02-21 15:35:03 -06:00
Alex Gleason
72851bc536
Remove AdminStore from storages
2025-02-21 15:08:58 -06:00
Alex Gleason
e5657d67c0
app -> route
2025-02-21 15:08:37 -06:00
Alex Gleason
d0c7cc7a45
Improve cashu test
2025-02-21 15:05:54 -06:00
Alex Gleason
438ab09216
Split userMiddleware into tokenMiddleware and a new userMiddleware
2025-02-21 14:52:17 -06:00
P. Reis
ac684194a0
feat: create tokenEventSchema and add tests for cashu schemas
2025-02-21 16:48:44 -03:00
Alex Gleason
5ad7f1d5d7
userMiddleware -> tokenMiddleware
2025-02-21 13:27:19 -06:00
P. Reis
08d2f7fe3f
refactor: add cashu proof schema
2025-02-21 11:41:45 -03:00
Alex Gleason
f83925331a
Apply the UserStore to the userMiddleware
2025-02-20 20:04:57 -06:00
Alex Gleason
8f49b99935
Consolidate AdminStore and UserStore
2025-02-20 20:03:31 -06:00
Alex Gleason
8a978b088b
Use the user's store in a few places where it matters
2025-02-20 18:57:55 -06:00
Alex Gleason
33786d2e5d
Fix cashu tests, sorta
2025-02-20 18:48:44 -06:00
P. Reis
d87f650da3
fix: remove unused imports
2025-02-20 19:36:02 -03:00
P. Reis
a6fba9c8f1
fix: remove unused imports
2025-02-20 19:34:58 -03:00
P. Reis
d98a4bd263
refactor: use validateAndParseWallet function in GET /wallet
2025-02-20 19:33:25 -03:00
P. Reis
36640dd400
refactor: explain better the 'toBeRedeemed' field
2025-02-20 19:21:20 -03:00
P. Reis
71fd6ef965
refactor: extract repetitive validation and put it into a new function called 'validateAndParseWallet', tests included
2025-02-20 19:12:35 -03:00
Alex Gleason
e1bf86eb21
Make auth middleware work again (in a hacky way for now)
2025-02-20 14:45:44 -06:00
Alex Gleason
67aec57990
Rename @ditto/api to @ditto/mastoapi, start using the new router and middleware in app
2025-02-20 14:29:22 -06:00
Alex Gleason
22d7a5fa55
Merge remote-tracking branch 'origin/main' into router
2025-02-20 12:07:18 -06:00
Alex Gleason
64e71b0ba8
Merge branch 'rm-admin-signer' into 'main'
...
Remove AdminSigner, Conf.pubkey, Conf.nsec, add Conf.signer
See merge request soapbox-pub/ditto!682
2025-02-20 18:07:01 +00:00
Alex Gleason
0841563d69
Remove AdminSigner, Conf.pubkey, Conf.nsec, add Conf.signer
2025-02-20 12:04:52 -06:00
Alex Gleason
6bdb613522
Merge remote-tracking branch 'origin/main' into router
2025-02-20 11:37:33 -06:00
Alex Gleason
5ad38b4058
Merge branch 'dittodb' into 'main'
...
Swap the names of DittoDB and DittoDatabase, rename DittoDatabase to DittoPolyPg
See merge request soapbox-pub/ditto!681
2025-02-20 17:37:25 +00:00
Alex Gleason
44c4b3188c
DittoPolyPg: fix path to migrations
2025-02-20 11:35:37 -06:00
Alex Gleason
5231c8a94f
Rename DittoDatabase to DittoPolyPg
2025-02-20 11:32:04 -06:00
Alex Gleason
c7624e99d7
Swap the names of DittoDB and DittoDatabase
2025-02-20 11:26:27 -06:00
Alex Gleason
5c0a350776
Add @ditto/router package
2025-02-20 11:19:50 -06:00
Alex Gleason
f5947eda8b
Merge branch 'deepl-fix' into 'main'
...
Fix DeepL Response parsing, mock DeepL tests so they can always run without API keys
See merge request soapbox-pub/ditto!680
2025-02-20 17:10:03 +00:00
Alex Gleason
91f9bd9442
Add mock LibreTranslate tests
2025-02-20 11:07:41 -06:00
Alex Gleason
1afb09e604
DittoTranslator: source_lang -> sourceLang
2025-02-20 10:39:31 -06:00
Alex Gleason
2150259aba
languageSchema does not lowercase the code
2025-02-20 10:36:43 -06:00
Alex Gleason
d791a9b350
Fix DeepL Response parsing, mock DeepL tests so they can always run without API keys
2025-02-20 10:35:27 -06:00
Alex Gleason
403d0ac5c2
Add logi log to translate controller
2025-02-20 10:03:01 -06:00
P. Reis
c530aa310d
fix: get multiple proofs from nutzap event
2025-02-20 11:27:50 -03:00
Alex Gleason
2ce283e9a5
return new Response() -> return c.newResponse()
2025-02-20 00:57:47 -06:00
Alex Gleason
f72fcdbd65
Upgrade socket before closing with 1008 (ratelimit)
2025-02-20 00:23:06 -06:00
Alex Gleason
e2f23e51d2
Merge branch 'rm-pubsub' into 'main'
...
Remove pubsub storage
See merge request soapbox-pub/ditto!676
2025-02-20 05:13:11 +00:00
Alex Gleason
521b63185b
Catch webPush
2025-02-19 22:14:38 -06:00
Alex Gleason
351d03bde7
Remove accidentally added DittoAPIStore
2025-02-19 22:02:49 -06:00
Alex Gleason
841b83f573
Hopeless Cashu tests leak even more
2025-02-19 22:01:16 -06:00
Alex Gleason
6f7fc11635
Super duper extra close the database
2025-02-19 22:00:09 -06:00
Alex Gleason
c6605ece77
Fix not being able to log in for chrissakes
2025-02-19 21:50:19 -06:00
Alex Gleason
aefa6bed6e
Add an initial limit back to the relay
2025-02-19 20:51:07 -06:00
Alex Gleason
9401c0e013
DittoPgStore: call expandFilters in .req
2025-02-19 20:40:30 -06:00
Alex Gleason
d05dd16507
EOSE after empty initial filters
2025-02-19 20:29:24 -06:00
Alex Gleason
f0c7ec0a99
Prevent the streaming API from paginating the whole database
2025-02-19 20:25:12 -06:00
Alex Gleason
f87f19d06c
DittoPgStore: rework realtime streaming so it actually works
2025-02-19 20:17:53 -06:00
P. Reis
741df0bee6
reminder: fix not getting multiple proofs
2025-02-19 21:26:34 -03:00
Alex Gleason
bc0830785a
Remove old startNotify code
2025-02-19 16:19:16 -06:00
Alex Gleason
d9a466c0ee
Remove InternalRelay (pubsub) store
2025-02-19 16:13:22 -06:00
Alex Gleason
6568dca191
DittoPgStore: support timeout in req, add special treatment for ephemeral events, yield event loop when processing many subscriptions
2025-02-19 15:55:09 -06:00
Alex Gleason
31044691e1
Merge remote-tracking branch 'origin/main' into rm-pubsub
2025-02-19 12:03:12 -06:00
P. Reis
e9210118b0
fix: pass mintUrl rather than mint instance
2025-02-19 11:34:33 -03:00
P. Reis
04d710b1b8
fix: return mints from the wallet, not just the ones from kind 7375
2025-02-19 11:14:05 -03:00
Alex Gleason
f86d1f1cad
Merge branch 'deno-2.2.0' into 'main'
...
Upgrade Deno to v2.2.0
See merge request soapbox-pub/ditto!679
2025-02-19 02:06:08 +00:00
Alex Gleason
7deec54a2e
Upgrade Deno to v2.2.0
2025-02-18 20:04:23 -06:00
P. Reis
d055c80abe
fix: pipe json payload into desired schema
2025-02-18 22:29:39 -03:00
P. Reis
a2165f0918
refactor: implement getMintsToProofs function
2025-02-18 22:19:41 -03:00
P. Reis
8890311e2d
refactor: create getLastRedeemedNutzap function
2025-02-18 21:03:12 -03:00
Alex Gleason
3ed75434fe
Merge branch 'genevent' into 'main'
...
Switch to genEvent from Nostrify
See merge request soapbox-pub/ditto!678
2025-02-18 22:37:55 +00:00
Alex Gleason
c29fc57a8c
Switch to genEvent from Nostrify
2025-02-18 16:35:45 -06:00
Alex Gleason
32813485a5
Merge branch 'rm-search-store' into 'main'
...
Remove SearchStore
See merge request soapbox-pub/ditto!677
2025-02-18 21:09:56 +00:00
Alex Gleason
aabe6350a7
Remove SearchStore
2025-02-18 15:08:00 -06:00
P. Reis
839aaca179
refactor: use zod
2025-02-18 17:13:16 -03:00
Alex Gleason
6fb873e72f
Make DittoPgStore pubsub capable
2025-02-18 13:45:14 -06:00
Alex Gleason
37f418899b
EventsDB -> DittoPgStore
2025-02-18 13:32:32 -06:00
Alex Gleason
3e7f33a63d
Merge branch 'ditto-ratelimiter' into 'main'
...
Make @ditto/ratelimiter its own package
See merge request soapbox-pub/ditto!675
2025-02-18 19:18:44 +00:00
Alex Gleason
ac3a9fdf5a
Make @ditto/ratelimiter its own package
2025-02-18 13:16:42 -06:00
Alex Gleason
fc2928e72e
Merge branch 'ditto-policies' into 'main'
...
Make @ditto/policies its own package
See merge request soapbox-pub/ditto!674
2025-02-18 19:14:38 +00:00
Alex Gleason
6f9081bbaf
Make @ditto/policies its own package
2025-02-18 13:13:05 -06:00
Alex Gleason
c029520937
Merge branch 'ditto-translators' into 'main'
...
Make @ditto/translators its own package
See merge request soapbox-pub/ditto!673
2025-02-18 19:07:33 +00:00
Alex Gleason
025a86fda2
translators: add missing return types
2025-02-18 13:05:47 -06:00
Alex Gleason
990646da26
Make @ditto/translators its own package
2025-02-18 13:03:48 -06:00
Alex Gleason
e163fcfa80
Merge branch 'ditto-lang' into 'main'
...
Make @ditto/lang its own package
See merge request soapbox-pub/ditto!672
2025-02-18 18:50:51 +00:00
Alex Gleason
d901a722e5
Make @ditto/lang its own package
2025-02-18 12:49:19 -06:00
Alex Gleason
7ef4fcecd3
Merge branch 'ditto-uploaders' into 'main'
...
Move uploaders into @ditto/uploaders
See merge request soapbox-pub/ditto!671
2025-02-18 18:45:34 +00:00
Alex Gleason
b2cd5c541b
Move uploaders into @ditto/uploaders
2025-02-18 12:43:57 -06:00
P. Reis
4b49dd0ddf
refactor: delete get quote id state
2025-02-17 21:05:25 -03:00
P. Reis
fb72038373
feat: implement POST '/api/v1/ditto/cashu/mint/:quote_id'
2025-02-17 15:16:16 -03:00
P. Reis
29b1a20193
Merge branch 'main' into mint-cashu
2025-02-17 10:58:08 -03:00
P. Reis
b9d813804e
feat: implement GET '/api/v1/ditto/cashu/quote/:quote_id' (not tested)
2025-02-16 20:00:14 -03:00
Alex Gleason
9e9a784416
Merge branch 'fix-policy-path' into 'main'
...
Fix path to datadir and custom policies
See merge request soapbox-pub/ditto!669
2025-02-16 18:54:08 +00:00
Alex Gleason
af0e688ca3
Fix path to datadir and custom policies
2025-02-16 12:52:27 -06:00
Alex Gleason
561efeffde
Merge branch 'ditto-metrics' into 'main'
...
Add @ditto/metrics package
See merge request soapbox-pub/ditto!668
2025-02-16 18:03:47 +00:00
Alex Gleason
0ace14ffbb
metrics: add types to all exports
2025-02-16 11:56:41 -06:00
Alex Gleason
e100f72a9b
Add deno task lint
2025-02-16 11:53:34 -06:00
Alex Gleason
785ba1e053
Remove base alias from packages (make scripts use relative paths for now)
2025-02-16 11:50:25 -06:00
Alex Gleason
fbb5c63c33
metrics: make 'prefix' a variable
2025-02-16 11:45:08 -06:00
Alex Gleason
e1c1967a66
db: remove some external deps
2025-02-16 11:42:48 -06:00
Alex Gleason
dbfd759fba
Merge remote-tracking branch 'origin/main' into ditto-metrics
2025-02-16 00:45:01 -06:00
Alex Gleason
84493ceacc
Merge branch 'ditto-db' into 'main'
...
Add @ditto/db package
See merge request soapbox-pub/ditto!667
2025-02-16 06:44:48 +00:00
Alex Gleason
425e0bf3f0
ci: deno lint --allow-import
2025-02-16 00:43:10 -06:00
Alex Gleason
4e0bb16b85
Fix db tests
2025-02-16 00:39:00 -06:00
Alex Gleason
739153afc9
Add @ditto/metrics package
2025-02-16 00:30:00 -06:00
Alex Gleason
773b5da461
Add db tests
2025-02-16 00:21:41 -06:00
Alex Gleason
c59bb421c6
Add @ditto/db package
2025-02-16 00:14:41 -06:00
Alex Gleason
a9744ff4ad
Add streak.expires to the API
2025-02-15 23:23:04 -06:00
Alex Gleason
222bf84eab
More msg tweaks
2025-02-15 23:05:41 -06:00
Alex Gleason
7622230c19
logi: ditto.relay.message -> ditto.relay.msg
2025-02-15 22:51:49 -06:00
Alex Gleason
aefc8c7163
Log verb with ditto.relay.message
2025-02-15 22:47:11 -06:00
P. Reis
8cba937962
Merge branch 'main' into mint-cashu
...
Conflicts:
packages/ditto/controllers/api/cashu.ts
2025-02-15 21:59:12 -03:00
Alex Gleason
7fb60f6d1b
Merge branch 'rm-conf' into 'main'
...
Replace `import Conf` calls with Hono context in some places
See merge request soapbox-pub/ditto!665
2025-02-16 00:52:42 +00:00
Alex Gleason
3073777d9b
Fix cashu tests
2025-02-15 18:51:15 -06:00
P. Reis
3bafb439bb
feat: create POST '/api/v1/ditto/cashu/quote' endpoint
...
also create GET /quote/:quote_id and POST /mint/:quote_id endpoints (they are not implemented)
2025-02-15 21:44:43 -03:00
Alex Gleason
d0d37f5948
Remove Conf from middleware
2025-02-15 18:43:59 -06:00
Alex Gleason
8d2c83bb09
Remove Conf from S3Uploader, uploaderMiddleware
2025-02-15 18:38:20 -06:00
Alex Gleason
478c77bb62
Eliminate Conf from most controllers
2025-02-15 18:34:43 -06:00
Alex Gleason
cfd4d6bda5
Merge branch 'ditto-conf' into 'main'
...
@ditto/config -> @ditto/conf, DittoConfig -> DittoConf
See merge request soapbox-pub/ditto!664
2025-02-16 00:00:02 +00:00
Alex Gleason
02a7305ee9
@ditto/config -> @ditto/conf, DittoConfig -> DittoConf
2025-02-15 17:58:24 -06:00
Alex Gleason
3d2816dd05
Merge branch 'conf-mw' into 'main'
...
Add @ditto/api package with conf middleware
See merge request soapbox-pub/ditto!663
2025-02-15 23:56:14 +00:00
Alex Gleason
665be0c1b2
Add @ditto/api package with conf middleware
2025-02-15 17:54:38 -06:00
Alex Gleason
28f6ec8fc5
Merge branch 'ditto-config' into 'main'
...
Add a @ditto/config package, refactor config
See merge request soapbox-pub/ditto!662
2025-02-15 23:04:53 +00:00
Alex Gleason
9bfc7e6fe3
DittoConfig: fix missing return type of .external()
2025-02-15 17:02:53 -06:00
Alex Gleason
a2f273287d
config: test defaults
2025-02-15 16:59:12 -06:00
Alex Gleason
1e5278dc8c
Add basic DittoConfig tests
2025-02-15 16:55:59 -06:00
Alex Gleason
13db5498a5
config: break mergeURLPath into a separate module
2025-02-15 16:51:21 -06:00
Alex Gleason
5f6cdaf7d5
config: refactor schemas into a separate file
2025-02-15 16:37:33 -06:00
Alex Gleason
1636601bfe
config: crypto.ts -> utils/crypto.ts
2025-02-15 16:32:10 -06:00
Alex Gleason
cbe156ae2b
Create @ditto/config module
2025-02-15 16:28:26 -06:00
Alex Gleason
482b0092da
Merge branch 'monorepo' into 'main'
...
Make Ditto a monorepo
See merge request soapbox-pub/ditto!661
2025-02-15 20:47:36 +00:00
Alex Gleason
2ccd4bad96
Move static/ into packages/ditto
2025-02-15 14:41:57 -06:00
Alex Gleason
5ee682ef8f
Remove accidental file: log.json
2025-02-15 14:38:15 -06:00
Alex Gleason
3476f45b41
Add @ditto/ditto as a workspace package
2025-02-15 14:31:30 -06:00
Alex Gleason
aa8bb03e5a
mv src packages/ditto
2025-02-15 14:21:05 -06:00
Alex Gleason
5bf6865f21
Merge branch 'notify-replaceable' into 'main'
...
NOTIFY when replaceable events update
See merge request soapbox-pub/ditto!660
2025-02-15 19:16:27 +00:00
Alex Gleason
d8d8cc20c9
NOTIFY when replaceable events update
2025-02-15 13:09:29 -06:00
Alex Gleason
6eb579e137
Merge branch 'cashu-test-pipeline-fast' into 'main'
...
Cashu test pipeline fast
See merge request soapbox-pub/ditto!659
2025-02-14 18:14:14 +00:00
P. Reis
31eb74b6e4
refactor: use mockFetch
2025-02-14 14:47:20 -03:00
P. Reis
028d41d585
refactor: use fetch mock
2025-02-14 11:52:37 -03:00
P. Reis
cb475f1126
dependency: add jsr:@std/testing/mock
2025-02-14 11:51:36 -03:00
P. Reis
9e7576f248
deno.lock: types/node
2025-02-14 11:36:26 -03:00
P. Reis
461feff952
fix: make cashu tests faster by giving invalid URL
2025-02-14 11:35:12 -03:00
P. Reis
ad967bbb5d
Revert "Delete cashu.test.ts"
...
This reverts commit 032b29cfba .
2025-02-14 10:46:59 -03:00
Alex Gleason
032b29cfba
Delete cashu.test.ts
2025-02-13 21:34:10 -06:00
Alex Gleason
8d19eb3ec6
Don't hydrate related events when posting a status
2025-02-13 21:33:34 -06:00
Alex Gleason
64c703cef4
Log ip in relay
2025-02-13 21:11:59 -06:00
Alex Gleason
24ee33489d
Merge branch 'trigger-insert' into 'main'
...
Trigger NOTIFY only on insert (not update)
See merge request soapbox-pub/ditto!658
2025-02-14 02:48:49 +00:00
Alex Gleason
dd336232d5
Trigger NOTIFY only on insert (not update)
2025-02-13 20:45:02 -06:00
Alex Gleason
053c362d44
Merge branch 'deno-2.1.10' into 'main'
...
Upgrade Deno to v2.1.10
See merge request soapbox-pub/ditto!657
2025-02-14 00:21:06 +00:00
Alex Gleason
b07ba9423b
Remove png-to-ico (this augments @types/node to a wrong version)
2025-02-13 18:16:52 -06:00
Alex Gleason
30b4900992
Upgrade Deno to v2.1.10
2025-02-13 17:46:28 -06:00
Alex Gleason
dda1bebfbc
Merge branch 'cleanup' into 'main'
...
Cleanup
See merge request soapbox-pub/ditto!656
2025-02-13 23:45:26 +00:00
Alex Gleason
a2de8cdf82
Remove unnecessary lint rules from deno.json, avoid explicit any
2025-02-13 17:41:30 -06:00
Alex Gleason
359558e2d6
Remove unused docs and ansible directories
2025-02-13 17:21:33 -06:00
Alex Gleason
efb91d9f3f
Merge branch 'cashu' into 'main'
...
Swap the tokens into the wallet
See merge request soapbox-pub/ditto!636
2025-02-13 22:54:54 +00:00
P. Reis
a5d4906257
refactor: just ignore leaky tests
2025-02-13 19:51:13 -03:00
Alex Gleason
26346b83ac
Fix leaky tests, but nutzapMiddleware is still broken
2025-02-13 15:47:53 -06:00
P. Reis
6473ab0f98
Merge branch 'main' into cashu
2025-02-13 13:25:06 -03:00
P. Reis
3418871a70
feat: create GET '/api/v1/ditto/cashu/mints' endpoint
2025-02-13 13:23:47 -03:00
Alex Gleason
00146dc192
Merge branch 'search-pagination' into 'main'
...
Try using offset pagination for account search
See merge request soapbox-pub/ditto!655
2025-02-13 05:41:22 +00:00
Alex Gleason
3c0e6dac76
Try using offset pagination for account search
2025-02-12 23:35:43 -06:00
Alex Gleason
a85daf1e67
EventsDB: fix domain query test
2025-02-12 23:11:09 -06:00
Alex Gleason
aabb20efa3
Rework domain queries so allow querying all subdomains by base domain
2025-02-12 23:04:08 -06:00
Alex Gleason
d991464810
Fix domain feeds
2025-02-12 22:45:53 -06:00
P. Reis
795c83ee88
refactor: remove unused imports and get rid of useless await
2025-02-12 20:28:34 -03:00
P. Reis
7d2258ff50
refactor: delete old controllers code: swapNutzapsToWalletController, createNutzapInformationController and createCashuWalletController
2025-02-12 20:11:02 -03:00
Alex Gleason
9ca0b2d21c
Merge branch 'search-perf' into 'main'
...
Improve performance of account search
See merge request soapbox-pub/ditto!653
2025-02-12 22:21:24 +00:00
Alex Gleason
db793a3c6c
Refresh materialized view in search test
2025-02-12 16:20:04 -06:00
Alex Gleason
1482ee148e
Add missing indexes, fix order of results
2025-02-12 16:13:44 -06:00
Alex Gleason
ab7a0e06c7
Add a top_authors materialized view
2025-02-12 15:21:09 -06:00
Alex Gleason
510ad647be
Fix type errors
2025-02-12 15:02:19 -06:00
Alex Gleason
5969d9b3fa
getPubkeysBySearch: reduce limit of second query if applicable
2025-02-12 14:47:20 -06:00
Alex Gleason
379953a8cb
Improve performance of account search
2025-02-12 14:40:00 -06:00
P. Reis
96a16a9fd0
feat: create GET '/api/v1/ditto/cashu/mints' endpoint
2025-02-12 16:33:56 -03:00
Alex Gleason
7d8e5e676c
Merge branch 'legacy-media' into 'main'
...
Enable media:true for legacy (non-imeta) URL attachments
See merge request soapbox-pub/ditto!652
2025-02-12 19:23:15 +00:00
Alex Gleason
112081e4bb
Enable media:true for legacy (non-imeta) URL attachments
2025-02-12 13:21:04 -06:00
P. Reis
7095519198
chore: remove done comments
2025-02-12 13:46:37 -03:00
Alex Gleason
8d76ab2906
Merge branch 'rm-pubkey-domains' into 'main'
...
Remove pubkey_domains table
See merge request soapbox-pub/ditto!651
2025-02-12 03:51:52 +00:00
Alex Gleason
f6fe777e78
Remove pubkey_domains table
2025-02-11 21:49:58 -06:00
Alex Gleason
efbefd918a
Speed up db:populate-extensions task
2025-02-11 21:20:16 -06:00
P. Reis
03946fabc8
test: GET /wallet must be successful
2025-02-11 22:11:06 -03:00
P. Reis
5e86844c12
feat: craete GET '/api/v1/ditto/cashu/wallet' endpoint
...
refactor: remove old swap controller and create swapNutzapsMiddleware
2025-02-11 22:10:33 -03:00
Alex Gleason
173aea6458
Update deno.lock
2025-02-11 18:17:22 -06:00
Alex Gleason
266fa08004
Merge branch 'negative-search' into 'main'
...
Upgrade Nostrify to support negative search queries, remove getIdsBySearch function
See merge request soapbox-pub/ditto!650
2025-02-12 00:16:19 +00:00
Alex Gleason
c379c11b25
search: support pagination via Link header
2025-02-11 18:13:47 -06:00
Alex Gleason
eb94da6cca
Upgrade Nostrify to support negative search queries, remove getIdsBySearch function
2025-02-11 17:40:28 -06:00
Alex Gleason
f8777b9e09
Merge branch 'fix-language' into 'main'
...
Ensure `.language` property gets added to DittoEvent when it's queried
See merge request soapbox-pub/ditto!649
2025-02-11 19:23:51 +00:00
Alex Gleason
43d675b837
Ensure .language property gets added to DittoEvent when it's queried
2025-02-11 13:19:32 -06:00
P. Reis
76f91687bd
test: split test into 2 test functions
2025-02-11 12:58:02 -03:00
P. Reis
edd9512b01
test: PUT '/api/v1/ditto/cashu/wallet' endpoint must NOT be successful
2025-02-11 11:45:14 -03:00
P. Reis
89840eb279
refactor: create walletSchema and use it where required
2025-02-11 11:29:58 -03:00
P. Reis
1ff6511b39
test: PUT '/api/v1/ditto/cashu/wallet' endpoint
2025-02-11 11:07:46 -03:00
P. Reis
b74a0ffac0
refactor: create NIP-60 wallet and NIP-61 nutzap information event in the same endpoint
2025-02-11 10:59:04 -03:00
Alex Gleason
207e04ef08
Prewarm card cache in pipeline
2025-02-10 22:19:35 -06:00
Alex Gleason
756a9d9607
favicon: image/x-icon is an acceptable mime type
2025-02-10 21:21:18 -06:00
Alex Gleason
e468072b55
Merge branch 'home-filters' into 'main'
...
homeTimelineController: support exclude_replies, only_media params
See merge request soapbox-pub/ditto!648
2025-02-10 23:10:22 +00:00
Alex Gleason
11adaef243
homeTimelineController: support exclude_replies, only_media params
2025-02-10 17:08:29 -06:00
Alex Gleason
9e7aeda364
Merge branch 'exclude-replies-index' into 'main'
...
accountStatusesController: handle exclude_replies with NIP-50 search ext
See merge request soapbox-pub/ditto!647
2025-02-10 23:01:39 +00:00
Alex Gleason
8a9928696b
accountStatusesController: handle exclude_replies with NIP-50 search ext
2025-02-10 16:56:59 -06:00
Alex Gleason
c9dc3b198c
Merge branch 'nip11-cors' into 'main'
...
Set CORS header on NIP-11 response
See merge request soapbox-pub/ditto!646
2025-02-10 22:24:27 +00:00
Alex Gleason
8e3976ea78
Merge branch 'hydrate-batch' into 'main'
...
hydrate: batch queries together
See merge request soapbox-pub/ditto!645
2025-02-10 22:23:49 +00:00
Alex Gleason
56c782e6e5
Set CORS header on NIP-11 response
2025-02-10 16:22:56 -06:00
Alex Gleason
4e86b6bf3f
hydrate: quotes must be gathered in a separate step
2025-02-10 16:21:01 -06:00
Alex Gleason
8267c170f0
hydrate: batch queries together
2025-02-10 16:15:13 -06:00
P. Reis
5076cdcc33
Merge branch 'main' into cashu
2025-02-10 17:18:40 -03:00
Alex Gleason
425edf2174
Add controller test, refactor some middlewares
2025-02-10 12:41:41 -06:00
Alex Gleason
1368304d25
Add cashuApp (rough draft)
2025-02-10 12:04:46 -06:00
P. Reis
00d10c7f9b
refactor: TODO comments
2025-02-10 13:24:19 -03:00
Alex Gleason
1c4f0a87d5
Merge branch 'index-u-tags' into 'main'
...
feat: index 'u' tags
See merge request soapbox-pub/ditto!644
2025-02-10 16:04:50 +00:00
P. Reis
5a19a35847
Merge branch 'main' into cashu
...
Conflicts:
deno.json
2025-02-10 12:48:55 -03:00
P. Reis
f85e7f7c33
feat: index 'u' tags
2025-02-09 21:27:38 -03:00
Alex Gleason
424272c97b
Merge branch 'nip05-db' into 'main'
...
Store NIP-05 in the database
See merge request soapbox-pub/ditto!641
2025-02-09 23:46:50 +00:00
Alex Gleason
16f3a13364
SimpleLRU: respect AbortSignal
2025-02-09 17:22:53 -06:00
Alex Gleason
a597eae674
Merge remote-tracking branch 'origin/main' into nip05-db
2025-02-09 15:11:20 -06:00
Alex Gleason
8db0238c9a
Merge branch 'asyncutil' into 'main'
...
@lambdalisue/async -> @core/asyncutil
See merge request soapbox-pub/ditto!643
2025-02-09 21:07:40 +00:00
Alex Gleason
433c2a4347
@lambdalisue/async -> @core/asyncutil
2025-02-09 15:06:13 -06:00
Alex Gleason
56e478a65d
Merge branch 'rm-fetch-worker' into 'main'
...
Remove fetchWorker
See merge request soapbox-pub/ditto!642
2025-02-09 21:04:24 +00:00
Alex Gleason
838f773b84
Remove fetchWorker
2025-02-09 15:02:15 -06:00
Alex Gleason
a98bfdd0c6
fetchWorker: try throwing a preemptive AbortError inside the worker itself
2025-02-09 14:52:43 -06:00
Alex Gleason
93874df063
fetchWorker: log responses
2025-02-09 14:50:28 -06:00
Alex Gleason
576a66460f
fetchWorker: preemptively throw if signal is aborted
2025-02-09 14:45:26 -06:00
Alex Gleason
ebbde66824
Add @core/asyncutil
2025-02-09 14:34:12 -06:00
Alex Gleason
41419e84dc
Refetch nip05 if last_verified is null
2025-02-09 14:20:32 -06:00
Alex Gleason
8386fe7609
try-catch favicon fetch
2025-02-09 13:32:47 -06:00
Alex Gleason
dd009de5be
Wrap nip05 updates in a try-catch
2025-02-09 13:31:17 -06:00
Alex Gleason
8c60a4842b
Fix NIP05 verification
2025-02-09 13:27:05 -06:00
Alex Gleason
48507b7505
faviconCache: check favicon.ico explicitly
2025-02-09 11:57:09 -06:00
P. Reis
cde091132e
fix: remove comment
2025-02-09 11:54:12 -03:00
Alex Gleason
e7027af1ae
Fix hydrating mentions
2025-02-08 10:13:38 -06:00
Alex Gleason
b8c67a85d0
hydrate: move gatherMentions down
2025-02-08 09:58:02 -06:00
P. Reis
efceee505a
fix: pass privkey to cashuWallet.receive
2025-02-07 23:49:57 -03:00
P. Reis
361ef9a600
fix: stop trying to decrypt kind 7376 content (lol), log errors
2025-02-07 23:32:21 -03:00
P. Reis
55cc109376
Merge branch 'main' into cashu
2025-02-07 22:53:34 -03:00
P. Reis
f9da100936
refactor(swapNutzapsToWalletController): change to POST method
2025-02-07 22:41:39 -03:00
Alex Gleason
5811a19151
Fix mentions in statuses?
2025-02-07 19:05:37 -06:00
Alex Gleason
7780507a15
Add semaphore to nip05 script
2025-02-07 18:17:50 -06:00
Alex Gleason
b902abc7cc
Use an even simpler query for db:populate:nip05 script
2025-02-07 18:13:39 -06:00
Alex Gleason
b0dc7faaff
Simplify db:populate:nip05 script
2025-02-07 17:49:39 -06:00
Alex Gleason
a4a26d7575
Make db:populate:nip05 script more efficient
2025-02-07 17:48:07 -06:00
Alex Gleason
5157a90b63
Add populate:nip05 script
2025-02-07 16:03:22 -06:00
Alex Gleason
93141c1db1
Hook everything up? (In a messy way)
2025-02-07 15:39:25 -06:00
P. Reis
a6c7bbd751
createNutzapInformationController: add TODO message
2025-02-07 18:11:39 -03:00
Alex Gleason
d9b0bc1437
Add nip05 and favicon results to the database, make renderAccount synchronous
2025-02-07 13:39:56 -06:00
Alex Gleason
af262b5d52
Whoops, fix streak days calculation
2025-02-07 12:06:34 -06:00
Alex Gleason
c476596d0a
Merge branch 'streak-window' into 'main'
...
Make STREAK_WINDOW configurable
See merge request soapbox-pub/ditto!640
2025-02-07 17:56:36 +00:00
Alex Gleason
ea8ef09045
Change default streak window to 36 hours
2025-02-07 11:54:47 -06:00
Alex Gleason
46558a97e4
Make STREAK_WINDOW configurable
2025-02-07 11:50:37 -06:00
Alex Gleason
00e10eb19f
detectLanguage: strip numbers from text before matching language patterns
2025-02-06 18:42:29 -06:00
Alex Gleason
86ffa7f0cc
Don't display broken streak through the API
2025-02-06 16:33:14 -06:00
Alex Gleason
30559ba043
streak-recompute: only update changed rows
2025-02-06 16:04:25 -06:00
Alex Gleason
08a5e7f761
Merge branch 'streak2' into 'main'
...
Streak API: Version 2
See merge request soapbox-pub/ditto!639
2025-02-06 22:01:47 +00:00
Alex Gleason
b480947c4d
Add a script to recompute the streak of all authors
2025-02-06 15:56:49 -06:00
Alex Gleason
080c34d13f
Fix streak broken logic
2025-02-06 14:53:42 -06:00
Alex Gleason
abea4f17b3
Streak: report a 1 day streak after the first post
2025-02-06 14:44:01 -06:00
Alex Gleason
084df2b59d
Streaks API
2025-02-06 14:26:08 -06:00
Alex Gleason
c2aab97018
indexExtensions: ensure kind 6 has reply:false to test the performance difference between -reply:true
2025-02-06 11:24:49 -06:00
Alex Gleason
f412a0ae50
detectLanguage: test that a Japanese text with Han-only characters is ambiguous
2025-02-06 10:40:41 -06:00
P. Reis
f5ebb5d82a
Merge branch 'main' into cashu
2025-02-06 13:19:35 -03:00
P. Reis
f7e49cd5ec
checkpoint: implement nutzap redemption history (kind 7376)
2025-02-06 12:28:09 -03:00
Alex Gleason
c5680150e6
Copy the code into getIdsBySearch >:(
2025-02-05 22:56:02 -06:00
Alex Gleason
6cf5d42a5b
Upgrade Nostrify to enable negative search tokens
2025-02-05 22:53:26 -06:00
P. Reis
d61f0d1d4b
checkpoint: swap tokens into user controlled wallet
...
TODO: create the 7376 history kind, reemded marker, etc
2025-02-05 23:34:56 -03:00
P. Reis
df1a3fe842
dependency: add cashu-ts
2025-02-05 19:32:48 -03:00
Alex Gleason
c837330b62
Merge branch 'language-code' into 'main'
...
Upgrade npm:iso-639-1, remove LanguageCode type assertions
See merge request soapbox-pub/ditto!637
2025-02-05 16:36:54 +00:00
Alex Gleason
7f5bfc6834
Upgrade npm:iso-639-1, remove LanguageCode type assertions
2025-02-05 10:22:09 -06:00
P. Reis
2012ef5192
Merge branch 'main' into cashu
2025-02-04 21:35:41 -03:00
P. Reis
870847127b
checkpoint: implement swapNutzapsToWalletController
2025-02-04 21:33:02 -03:00
Alex Gleason
e58d0af691
Merge branch 'definitive-languages' into 'main'
...
detectLanguage: check the text's script for definitive language categorization for some languages
See merge request soapbox-pub/ditto!635
2025-02-04 21:26:12 +00:00
Alex Gleason
2f2cb2c4fc
detectLanguage: check the text's script for definitive language categorization for some languages
2025-02-04 15:05:52 -06:00
P. Reis
236a9284ca
refactor(createNutzapInformationController): implement new NIP 60 cashu wallet
2025-02-04 15:12:56 -03:00
P. Reis
e9696b8a2a
refactor(createCashuWalletController): implement new NIP 60 cashu wallet
2025-02-04 12:48:56 -03:00
P. Reis
daedf24ca8
fix: add missing endpoint createNutzapInformationController
2025-02-04 12:34:41 -03:00
Alex Gleason
47d004d92a
Merge branch 'add-script-populate-gallery' into 'main'
...
feat: populate extensions
See merge request soapbox-pub/ditto!634
2025-02-03 23:08:20 +00:00
P. Reis
7beb2d594a
feat: populate extensions
2025-02-03 23:08:20 +00:00
Alex Gleason
ec5a000265
Upgrade gleasonator-policy, only index lowercase t-tags in EventsDB
2025-02-03 16:58:26 -06:00
Alex Gleason
1bfd5f992d
Merge branch 'mention-npub-fix' into 'main'
...
Only parse mentions with valid pubkeys
Closes #290
See merge request soapbox-pub/ditto!633
2025-02-03 20:55:45 +00:00
Alex Gleason
cfa6848927
Only parse mentions with valid pubkeys
...
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/290
2025-02-03 14:53:38 -06:00
Alex Gleason
00953e4a0a
Merge branch 'feat-nutzap-information' into 'main'
...
feat: create and implement createNutzapInformationController
See merge request soapbox-pub/ditto!630
2025-02-03 15:54:22 +00:00
Alex Gleason
41e974c31c
getIdsBySearch: AND and OR logic
2025-02-02 22:00:28 -06:00
Alex Gleason
116b675664
Tag protocol from proxy tag
2025-02-02 21:44:08 -06:00
Alex Gleason
70f8698e33
Upgrade @nostrify/db to v0.37.2
2025-02-02 21:41:35 -06:00
Alex Gleason
ffe49b3648
getIdsBySearch: fix joining txt tokens
2025-02-02 21:39:49 -06:00
Alex Gleason
0d718e28b4
Update getIdsBySearch to use the new search extensions column
2025-02-02 21:26:58 -06:00
Alex Gleason
4664aefa55
Remove the language column from the database, drop the default on search_ext
2025-02-02 21:06:30 -06:00
Alex Gleason
3edddb8dcc
Upgrade @nostrify/db
2025-02-02 20:40:36 -06:00
Alex Gleason
8693dd0e5d
Coerce only_media to a boolean again
2025-02-02 20:23:38 -06:00
Alex Gleason
83347df845
Fix video tag being incorrectly applied
2025-02-02 20:14:30 -06:00
Alex Gleason
3d221aa357
Merge branch 'feat-search-mime-type' into 'main'
...
feat: add mime_type column in nostr_events, add the NIP 50 search extensions: exact_mime_type, partial_mime_type, only_media
See merge request soapbox-pub/ditto!623
2025-02-03 01:46:54 +00:00
Alex Gleason
ad68946899
Fix defaultTo migration
2025-02-02 19:41:45 -06:00
Alex Gleason
f04ca2b6ff
Rework language and media columns to use Nostrify search_ext column
2025-02-02 19:32:43 -06:00
Alex Gleason
baad8821f5
Upgrade @nostrify/db
2025-02-02 17:47:34 -06:00
Alex Gleason
b4184631c3
Merge remote-tracking branch 'origin/main' into feat-search-mime-type
2025-02-02 17:47:10 -06:00
Alex Gleason
640e533dca
Add InternalRelay test
2025-02-01 11:59:38 -06:00
Alex Gleason
b7a1efe33c
localSuggestionsController: skip accounts without a profile
2025-01-30 21:56:45 -06:00
Alex Gleason
2dfde337cd
Fix localSuggestionsController
2025-01-30 21:53:45 -06:00
Alex Gleason
7f71f6f50c
Merge branch 'local-suggested' into 'main'
...
Add local suggestions controller
See merge request soapbox-pub/ditto!631
2025-01-31 03:19:35 +00:00
Alex Gleason
99d52f8640
Add local suggestions controller
2025-01-30 21:16:38 -06:00
Alex Gleason
c3403ba724
Make AppController accept a path parameter
2025-01-30 21:03:42 -06:00
Alex Gleason
c83a2dba7e
Give requireSigner middleware the right type
2025-01-30 20:39:51 -06:00
P. Reis
8797963d8c
refactor: remote import at the top
2025-01-30 20:35:46 -03:00
P. Reis
db6ac74702
feat: create and implement createNutzapInformationController
2025-01-30 20:26:24 -03:00
Alex Gleason
9ced9fb31d
Merge branch 'cashu-wallet' into 'main'
...
feat: endpoint for creating NIP-60 wallet
Closes #289
See merge request soapbox-pub/ditto!629
2025-01-30 18:59:11 +00:00
P. Reis
6a34f8f6e5
fix: use zod array instead of zod set
...
https://github.com/colinhacks/zod/issues/3963
2025-01-30 11:07:15 -03:00
Alex Gleason
c6848b9ce2
Log events sent to our relay
2025-01-30 02:33:19 -06:00
Alex Gleason
2ac2a45350
Actually do log traces
2025-01-30 02:23:47 -06:00
Alex Gleason
38f5a12284
Log relay communication
2025-01-30 02:19:19 -06:00
Alex Gleason
b473898cef
Upgrade Logi
2025-01-30 01:43:57 -06:00
P. Reis
d19b925db0
fix: get first event from query
2025-01-29 20:44:34 -03:00
P. Reis
d5ff66a542
feat: endpoint for creating NIP-60 wallet
2025-01-29 20:41:22 -03:00
Alex Gleason
8f4ae833ca
logi: message -> msg
2025-01-29 12:30:46 -06:00
Alex Gleason
449daf1e35
ditto.http.response: use error level when status >= 500
2025-01-29 10:06:21 -06:00
Alex Gleason
5f99bddb42
Add a logi custom handler for serializing non-JSON stuff (fix sql parameter serialization)
2025-01-28 19:37:45 -06:00
Alex Gleason
49735ce1fe
InstanceV2: bump max_media_attachments to 20
2025-01-28 14:57:32 -06:00
Alex Gleason
e31c58ac46
Merge branch 'last-kind7' into 'main'
...
EventsDB: index only the final `e` and `p` tag of kind 7 events
Closes #220
See merge request soapbox-pub/ditto!628
2025-01-28 20:24:23 +00:00
Alex Gleason
c7264d7627
Fix trends test
2025-01-28 14:22:16 -06:00
Alex Gleason
cce693dc9b
EventsDB: index only the final e and p tag of kind 7 events
...
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/220
2025-01-28 14:11:08 -06:00
Alex Gleason
55b338adea
Merge branch 'ipwhitelist' into 'main'
...
Add IP_WHITELIST variable to bypass rate limiting
See merge request soapbox-pub/ditto!627
2025-01-28 17:41:44 +00:00
Alex Gleason
8deea54ec8
Add IP_WHITELIST variable to bypass rate limiting
2025-01-28 11:40:16 -06:00
Alex Gleason
7a2a6e00c1
Upgrade Logi
2025-01-27 21:38:11 -06:00
Alex Gleason
fd553d98e2
KyselyLogger: fix import order
2025-01-27 19:26:52 -06:00
Alex Gleason
5ea33f6817
KyselyLogger: improve parameter serialization
2025-01-27 19:26:26 -06:00
Alex Gleason
05c90fb677
Merge branch 'logi' into 'main'
...
Switch to JSON logging
See merge request soapbox-pub/ditto!626
2025-01-28 00:15:58 +00:00
Alex Gleason
78cde6dcb2
Fix import order in api/admin
2025-01-27 18:14:12 -06:00
Alex Gleason
d23990e709
Remove unused variable
2025-01-27 18:13:29 -06:00
Alex Gleason
2165e649bc
Remove Stickynotes, replace all occurrences of console.log with logi
2025-01-27 18:11:32 -06:00
Alex Gleason
2a6f954df1
Add logi, start using it in KyselyLogger
2025-01-27 15:49:43 -06:00
Alex Gleason
224d7bfef9
Add SyslogIdentifier=ditto to systemd unit
2025-01-27 11:27:57 -06:00
Alex Gleason
452088386c
Upgrade @nostrify/db
2025-01-25 17:53:38 -06:00
Alex Gleason
85d9e210d3
Merge branch 'limiter' into 'main'
...
relay: stricter rate limits
See merge request soapbox-pub/ditto!625
2025-01-25 21:45:06 +00:00
Alex Gleason
7601cfa430
Don't throw inside the websocket callbacks because that crashes the whole application
2025-01-25 15:37:09 -06:00
Alex Gleason
fd312032a4
MultiRateLimiter: ensure the active limiter is used for ratelimit values
2025-01-25 15:31:49 -06:00
Alex Gleason
43a47770f4
relay: stricter rate limits
2025-01-25 15:21:16 -06:00
Alex Gleason
68a0ef6648
Add ratelimiter tests
2025-01-25 15:20:52 -06:00
Alex Gleason
12de164a4f
Add a custom RateLimiter implementation
2025-01-25 13:36:49 -06:00
Alex Gleason
b8d288868d
Turn on NOTIFY_ENABLED by default (now that it's optimized)
2025-01-25 01:46:31 -06:00
Alex Gleason
a8b8b8b427
Reduce default FIREHOSE_CONCURRENCY to 1
2025-01-25 01:46:08 -06:00
Alex Gleason
75be90694c
Always inject og metadata, but add generous cache headers
2025-01-25 01:42:20 -06:00
Alex Gleason
5dc840e14e
Avoid applying ratelimit to /packs
2025-01-24 04:27:56 -06:00
Alex Gleason
218604aa56
Move ratelimitMiddleware below metricsMiddleware, try adding a stricter ratelimit
2025-01-23 22:43:54 -06:00
Alex Gleason
64370c23e3
caddy: remove unnecessary hsts header
2025-01-23 15:42:19 -06:00
Alex Gleason
8083148d03
Don't include ratelimit headers on the default bucket
2025-01-23 15:27:24 -06:00
Alex Gleason
3fdd6e2213
Force no-store header on server error and rate limit responses
2025-01-23 15:23:48 -06:00
Alex Gleason
afa0a337d3
Add a default cache-control header of no-store
2025-01-23 14:59:29 -06:00
Alex Gleason
cd2619dbf3
Merge branch 'cache-control' into 'main'
...
Add Cache-Control headers
See merge request soapbox-pub/ditto!624
2025-01-23 20:15:56 +00:00
Alex Gleason
871222ee4e
Add Cache-Control headers to a bunch of routes
2025-01-23 14:11:10 -06:00
Alex Gleason
66f7853c3b
Add cacheControlMiddleware
2025-01-23 13:04:40 -06:00
Alex Gleason
b8dbc432ab
Add Cache-Control headers to nostr.json responses
2025-01-23 13:00:43 -06:00
Alex Gleason
aa1515e7e9
Remove accidental HSTS header from packs/ route
2025-01-23 13:00:11 -06:00
P. Reis
a7bb975221
fix(migration 042): use .ifExists()
2025-01-22 20:30:39 -03:00
P. Reis
f879315d34
feat: script to populate mime-type
2025-01-22 20:25:40 -03:00
P. Reis
e388925815
Merge branch 'main' into feat-search-mime-type
2025-01-22 17:11:03 -03:00
P. Reis
c3966be65b
feat(accountStatusesController): query for media faster
2025-01-22 17:10:24 -03:00
P. Reis
b037be44a4
feat: add mime_type column in nostr_events, add the following NIP 50 search extensions:
...
exact_mime_type, example: 'exact_mime_type:image/png' (uses hash index)
partial_mime_type, example 'partial_mime_type:image' (uses b-tree index)
only_media, example 'only_media:true' (sometimes uses index)
2025-01-22 17:01:10 -03:00
Alex Gleason
6d31949944
notActivitypubMiddleware: add bare ld+json to ACTIVITYPUB_TYPES
2025-01-21 18:49:08 -06:00
Alex Gleason
420cbba71f
Merge branch 'not-activitypub' into 'main'
...
Add notActivityPub middleware to stop AP requests on /users/*
See merge request soapbox-pub/ditto!622
2025-01-22 00:43:18 +00:00
Alex Gleason
281872b0ad
Add notActivityPub middleware to stop AP requests on /users/*
2025-01-21 18:41:04 -06:00
Alex Gleason
3fd311b929
Merge branch 'pipeline-source' into 'main'
...
pipeline: skip refetch of encountered events
See merge request soapbox-pub/ditto!620
2025-01-22 00:03:27 +00:00
Alex Gleason
7fdfb806f4
pipeline: skip refetch of encountered events
2025-01-21 17:31:55 -06:00
Alex Gleason
1204dc722f
Merge branch 'fix-mention' into 'main'
...
fix: mention with hyphen
See merge request soapbox-pub/ditto!619
2025-01-21 16:16:28 +00:00
P. Reis
e89853c56d
fix: mention with hyphen
2025-01-21 13:12:39 -03:00
Alex Gleason
93a035e3ff
Streaming: handle token errors as 401s
2025-01-20 22:47:21 -06:00
Alex Gleason
ba8b7ecaea
Merge branch 'caddy-log-ratelimit' into 'main'
...
Caddyfile: enable access log, add X-Real-IP header for rate limiting
See merge request soapbox-pub/ditto!618
2025-01-18 19:14:47 +00:00
Alex Gleason
d368bf90d5
Caddyfile: enable access log, add X-Real-IP header for rate limiting
2025-01-18 13:13:22 -06:00
Alex Gleason
f2766842ef
Merge branch 'caddyfile' into 'main'
...
Add a Caddyfile
See merge request soapbox-pub/ditto!617
2025-01-18 01:00:54 +00:00
Alex Gleason
5b9868bc3a
Add a Caddyfile
...
Related: https://gitlab.com/soapbox-pub/ditto/-/issues/265
2025-01-17 18:59:25 -06:00
Alex Gleason
ed29ecdb3f
Merge branch 'packs-cache' into 'main'
...
Add cache-control headers to /packs/*
See merge request soapbox-pub/ditto!616
2025-01-18 00:21:26 +00:00
Alex Gleason
51981009c4
Add cache-control headers to /packs/*
2025-01-17 18:19:32 -06:00
Alex Gleason
1e53457c9d
Merge branch 'kind-20' into 'main'
...
Support kind 20 "Picture" events (NIP-68)
See merge request soapbox-pub/ditto!615
2025-01-05 17:39:35 +00:00
Alex Gleason
b61eb2ff11
Fix favourites of kind 20 events
2025-01-05 11:37:38 -06:00
Alex Gleason
079177ea0b
EventsDB: index kind 20 in search the same as kind 1
2025-01-05 11:26:05 -06:00
Alex Gleason
7a60b4b8d8
Support kind 20 "Picture" events (NIP-68)
2025-01-05 11:23:18 -06:00
Alex Gleason
5a32964eb5
Merge branch 'upgrade-nostrify' into 'main'
...
Upgrade Nostrify
See merge request soapbox-pub/ditto!614
2024-12-30 20:31:20 +00:00
Alex Gleason
e523da9d19
Upgrade Nostrify
2024-12-30 14:29:45 -06:00
Alex Gleason
51fc0c9cc9
Merge branch 'tl-ratelimit' into 'main'
...
Stricter timeline rate limits
See merge request soapbox-pub/ditto!612
2024-12-27 19:20:29 +00:00
Alex Gleason
b85513496c
Ratelimit follow and unfollow
2024-12-27 13:18:22 -06:00
Alex Gleason
54c398c5fa
Ratelimit /followers and /following endpoints
2024-12-27 13:16:33 -06:00
Alex Gleason
a316e92001
Bump limits slightly, also limit account statuses controller
2024-12-27 13:15:47 -06:00
Alex Gleason
eb10cdce76
Stricter timeline rate limits
2024-12-27 13:06:32 -06:00
Alex Gleason
e32976945e
Merge branch 'media-newlines' into 'main'
...
Stop adding unnecessary newlines to the top of posts with images only
See merge request soapbox-pub/ditto!611
2024-12-27 02:43:20 +00:00
Alex Gleason
79e87008c1
Move content back up because it has side-effects with pubkeys
2024-12-26 20:40:59 -06:00
Alex Gleason
f72fdf79bb
Stop adding unnecessary newlines to the top of posts with images only
2024-12-26 20:33:26 -06:00
Alex Gleason
bb50ad7a43
Merge branch 'bunker-44' into 'main'
...
Switch to NIP-44 bunker encryption
See merge request soapbox-pub/ditto!608
2024-12-18 08:00:07 +00:00
Alex Gleason
139e600b79
Switch to NIP-44 bunker encryption
...
https://gitlab.com/soapbox-pub/ditto/-/issues/279
2024-12-18 01:56:53 -06:00
Alex Gleason
75f9c90a8c
Merge branch 'future-block' into 'main'
...
pipeline: block events too far in the future
See merge request soapbox-pub/ditto!607
2024-12-17 21:07:18 +00:00
Alex Gleason
e3294e5351
pipeline: block events too far in the future
2024-12-17 14:58:40 -06:00
Alex Gleason
f1f00fcf38
Merge branch 'fix-reaction-target-pubkey' into 'main'
...
fix: add 'p' tag to kind 7 event
See merge request soapbox-pub/ditto!606
2024-12-12 00:06:46 +00:00
P. Reis
5de7cfb4da
fix: add 'p' tag to kind 7 event
2024-12-11 21:04:00 -03:00
Alex Gleason
6eaf18a890
Merge branch 'valid-ws' into 'main'
...
Filter out invalid WebSocket URLs from pool, prevent admins from setting them
Closes #276
See merge request soapbox-pub/ditto!605
2024-12-10 23:45:58 +00:00
Alex Gleason
f8e77d90eb
Filter out invalid WebSocket URLs from pool, prevent admins from setting them
...
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/276
2024-12-10 17:43:41 -06:00
Alex Gleason
e3cc6922ae
Merge branch 'make-search-domain-faster' into 'main'
...
Make domain:<domain> search faster
See merge request soapbox-pub/ditto!604
2024-12-09 14:49:18 +00:00
P. Reis
8101483622
refactor: make domain:<domain> search faster
2024-12-09 11:32:51 -03:00
Alex Gleason
dbfd1a9d35
Merge branch 'self-label' into 'main'
...
Fix Bluesky's selfLabel name
See merge request soapbox-pub/ditto!602
2024-12-06 20:52:13 +00:00
Alex Gleason
a7bfc665c3
Fix Bluesky's selfLabel name
2024-12-06 14:50:16 -06:00
Alex Gleason
d0f53f5601
Merge branch 'fix-do-not-search-when-empty-content' into 'main'
...
refactor(getIdsBySearch): do not search if the search content is empty
See merge request soapbox-pub/ditto!599
2024-12-05 19:24:54 +00:00
Alex Gleason
5df47403ad
Merge branch 'fix-captcha-showing-up' into 'main'
...
Revert "Merge branch 'revert-70d30887' into 'main'"
Closes #269
See merge request soapbox-pub/ditto!601
2024-12-03 23:24:59 +00:00
P. Reis
b5221eb43a
fix: stop captcha showing up
2024-12-03 20:05:38 -03:00
P. Reis
e0d9e83f28
Revert "Merge branch 'revert-70d30887' into 'main'"
...
This reverts commit 0c2f082281 , reversing
changes made to 70d3088735 .
2024-12-03 20:04:18 -03:00
Alex Gleason
0c2f082281
Merge branch 'revert-70d30887' into 'main'
...
Revert "Merge branch 'fix-stop-overwite-kind-0-unnecessarily' into 'main'"
See merge request soapbox-pub/ditto!600
2024-12-03 22:04:10 +00:00
Alex Gleason
261cd339fa
Revert "Merge branch 'fix-stop-overwite-kind-0-unnecessarily' into 'main'"
...
This reverts merge request !598
2024-12-03 22:03:46 +00:00
Alex Gleason
70d3088735
Merge branch 'fix-stop-overwite-kind-0-unnecessarily' into 'main'
...
fix(updateCredentialsController): stop overwriting kind 0 unnecessarily
Closes #269
See merge request soapbox-pub/ditto!598
2024-12-03 21:29:12 +00:00
P. Reis
2b6bf125e1
refactor(updateCredentialsController): accountFromPubkey if the user has no kind 0
2024-12-03 18:23:13 -03:00
P. Reis
dfff24d3b2
refactor(updateCredentialsController): return error if event is undefined
2024-12-03 15:22:37 -03:00
P. Reis
30d7f1a053
refactor(updateCredentialsController): stop overwriting kind 0 unnecessarily
2024-12-03 14:33:04 -03:00
P. Reis
b45fcdde69
Revert "fix(updateCredentialsController): stop overwriting kind 0 unnecessarily"
...
This reverts commit 342ba7d4b1 .
2024-12-03 14:23:00 -03:00
Alex Gleason
cd95c38eec
'q' tag should omit marker per NIP-18
2024-11-30 13:14:16 -06:00
P. Reis
74ef00e9d8
refactor(getIdsBySearch): do not search if the search content is empty
2024-11-29 23:39:14 -03:00
Alex Gleason
f576e45c58
Upgrade gleasonator-policy in deno.lock
2024-11-29 18:55:38 -06:00
P. Reis
342ba7d4b1
fix(updateCredentialsController): stop overwriting kind 0 unnecessarily
2024-11-29 11:49:37 -03:00
Alex Gleason
45cb9757b4
Merge branch 'no-unauthenticated' into 'main'
...
Support Bluesky's !no-unauthenticated self-label
See merge request soapbox-pub/ditto!596
2024-11-26 06:52:12 +00:00
Alex Gleason
d86096dd91
Merge remote-tracking branch 'origin/main' into no-unauthenticated
2024-11-26 00:48:39 -06:00
Alex Gleason
beba62630a
Merge branch 'fix-ci' into 'main'
...
Simplify CI
See merge request soapbox-pub/ditto!597
2024-11-26 06:12:59 +00:00
Alex Gleason
40215716db
Delete cursed pipeline test
2024-11-26 00:09:04 -06:00
Alex Gleason
840b7231cd
Simplify CI
2024-11-25 23:43:48 -06:00
Alex Gleason
4ed66b8fe5
accountLookupController: support !no-unauthenticated
2024-11-25 22:44:14 -06:00
Alex Gleason
1dc19ef422
Support Bluesky's !no-unauthenticated self-label
2024-11-25 22:36:32 -06:00
Alex Gleason
afb450e412
Bump gleasonator-policy in deno.lock
2024-11-25 19:44:20 -06:00
Alex Gleason
5ea5fd40a4
Bump gleasonator-policy in deno.lock
2024-11-25 19:41:10 -06:00
Alex Gleason
418dbd6d0c
Let a proxy tag not be a URL (to support atproto URIs)
2024-11-22 10:49:05 -06:00
Alex Gleason
da82462fa2
Remove other usages of : any
2024-11-22 10:28:26 -06:00
Alex Gleason
4eb7ea2461
Remove e: any from error handlers
2024-11-22 10:26:30 -06:00
Alex Gleason
ebaf2b9c59
Upgrade Deno to v2.1.1
2024-11-22 10:19:54 -06:00
Alex Gleason
f40a9d8a5a
Merge branch 'ditto-retroactive-policies' into 'main'
...
add cleanup script (apply policy to events created before it applied)
Closes #232
See merge request soapbox-pub/ditto!590
2024-11-21 16:37:57 +00:00
Siddharth Singh
8607810117
delete events as they are streamed from db
2024-11-21 22:03:55 +05:30
Alex Gleason
1d803b3f32
Merge branch 'check-all' into 'main'
...
Type check scripts/
See merge request soapbox-pub/ditto!595
2024-11-21 16:28:22 +00:00
Alex Gleason
ceddcce4cf
Type check scripts/
2024-11-21 10:25:15 -06:00
Alex Gleason
e38392b269
Merge branch 'deno-2.1' into 'main'
...
Upgrade to Deno 2.1.0
See merge request soapbox-pub/ditto!594
2024-11-21 16:20:15 +00:00
Alex Gleason
53a0c45663
Upgrade to Deno 2.1.0
2024-11-21 10:16:56 -06:00
Alex Gleason
6ee4e0877a
Merge branch 'fields' into 'main'
...
Linkify profile field values
See merge request soapbox-pub/ditto!593
2024-11-20 17:09:45 +00:00
Alex Gleason
d2df2a5e22
Linkify profile field values
2024-11-20 11:06:36 -06:00
Alex Gleason
c25fd366a9
Merge branch 'fields' into 'main'
...
Instruct Soapbox to use up to 10 custom profile fields
See merge request soapbox-pub/ditto!592
2024-11-20 17:01:26 +00:00
Alex Gleason
81780bec72
Let field limits be configurable
2024-11-20 10:58:21 -06:00
Alex Gleason
39cb1ec0c9
renderAccount: only display up to 10 profile fields
2024-11-20 10:50:49 -06:00
Alex Gleason
7227202a86
Instruct Soapbox to use up to 10 custom profile fields
2024-11-20 10:49:19 -06:00
Alex Gleason
55d1297375
Merge branch 'fields' into 'main'
...
Add custom profile fields
See merge request soapbox-pub/ditto!591
2024-11-20 15:49:32 +00:00
Alex Gleason
098e1b7fff
Add a custom parseFormData helper to simulate Mastodon's (Rails) formdata parser
2024-11-20 09:46:09 -06:00
Alex Gleason
281f57d88e
Include fields in account.source
2024-11-20 09:45:52 -06:00
Alex Gleason
154056f8d6
Add custom profile fields
2024-11-20 08:58:12 -06:00
Siddharth Singh
a985d1add1
add cleanup script (apply policy to events created before it applied)
2024-11-17 22:17:26 +05:30
Alex Gleason
d2d29aef8f
Merge branch 'fix-remove-strict' into 'main'
...
fix(updateInstanceSchema): remove zod strict()
See merge request soapbox-pub/ditto!589
2024-11-15 14:56:22 +00:00
P. Reis
8fccd7eb03
fix(updateInstanceSchema): remove zod strict()
2024-11-15 11:49:38 -03:00
Alex Gleason
ee4373bdab
Merge branch 'fix-update-instance-admin-only' into 'main'
...
fix(updateInstanceController): use updateAdminEvent() function
See merge request soapbox-pub/ditto!588
2024-11-15 14:29:16 +00:00
P. Reis
d9cc8cc7c2
refactor(updateInstanceController): move async function out of callback
2024-11-15 11:20:10 -03:00
P. Reis
33b36ba0ed
fix(updateInstanceController): use updateAdminEvent() function
2024-11-15 11:08:47 -03:00
Alex Gleason
7108b62193
Merge branch 'configdb' into 'main'
...
Add PleromaConfigDB module, include sentryDsn in CSP
See merge request soapbox-pub/ditto!579
2024-11-15 02:43:50 +00:00
Alex Gleason
aea31bce5d
csp: use the sentry origin instead of the URL itself
2024-11-14 20:28:14 -06:00
Alex Gleason
3d376ba8b3
csp: fix connect-src
2024-11-14 20:18:15 -06:00
Alex Gleason
02ada73f48
Include Soapbox sentryDsn in CSP
2024-11-14 20:12:27 -06:00
Alex Gleason
55f50ba93d
PleromaConfigDB: implement .getIn
2024-11-14 19:54:29 -06:00
Alex Gleason
3e27e902d5
Add PleromaConfigDB test
2024-11-14 17:49:30 -06:00
Alex Gleason
6492486a1a
Merge remote-tracking branch 'origin/main' into configdb
2024-11-14 17:46:30 -06:00
Alex Gleason
cc6d12c09b
Merge branch 'fmt' into 'main'
...
deno fmt everything
See merge request soapbox-pub/ditto!587
2024-11-14 23:23:03 +00:00
Alex Gleason
03f0200114
deno fmt everything
2024-11-14 17:19:12 -06:00
Alex Gleason
5e523cbb1a
Merge remote-tracking branch 'origin/main' into configdb
2024-11-14 17:00:36 -06:00
Alex Gleason
1baab0f868
Merge branch 'make-sizes-optional' into 'main'
...
fix(screenshotsSchema): make sizes field optional
See merge request soapbox-pub/ditto!585
2024-11-14 16:17:04 +00:00
P. Reis
65ea84f429
Merge branch 'main' into make-sizes-optional
2024-11-13 19:15:00 -03:00
Alex Gleason
8a46d399fd
Merge branch 'safe-fetch' into 'main'
...
Upgrade safe-fetch
See merge request soapbox-pub/ditto!586
2024-11-13 21:47:13 +00:00
Alex Gleason
515c70f038
Switch to httpbingo in tests so testing over https works
2024-11-13 15:34:41 -06:00
Alex Gleason
674781daf1
Upgrade safe-fetch
2024-11-13 15:23:42 -06:00
P. Reis
acee8784ee
fix(screenshotsSchema): make sizes field optional
2024-11-13 17:19:11 -03:00
Alex Gleason
0bba4393ba
Remove unused ActivityPub schema
2024-11-11 19:54:59 -06:00
Alex Gleason
56a2e622e8
Remove deny-read from setup script
2024-11-10 10:37:05 -06:00
Alex Gleason
5c45517db4
deno task test: fix --deny-read flag
2024-11-07 17:02:08 -06:00
Alex Gleason
858692d2f3
Merge branch 'fix-updateInstanceController-schema' into 'main'
...
Update updateInstanceController schema
See merge request soapbox-pub/ditto!584
2024-11-07 21:34:17 +00:00
P. Reis
3a656e6f61
fix: remove unused imports
2024-11-07 18:31:28 -03:00
P. Reis
715908082f
fix(updateInstanceController): stop using screenshot_ids and thumbnail_id
2024-11-07 18:18:33 -03:00
Alex Gleason
3dafe2b6d1
playbook: upgrade Deno
2024-11-07 13:40:37 -06:00
Alex Gleason
66894c3a18
Merge branch 'deny-read-env' into 'main'
...
Deny reading .env
See merge request soapbox-pub/ditto!583
2024-11-07 19:36:44 +00:00
Alex Gleason
459adadd4c
Deny reading .env
2024-11-07 13:32:53 -06:00
Alex Gleason
6fae72b4cf
upload: append file size if it hasn't been
2024-11-07 13:10:15 -06:00
P. Reis
115641b3c2
fix: add short_description to instanceV2Controller
2024-11-07 15:22:28 -03:00
Alex Gleason
95c7c4f87c
Merge branch 'deno-2.0.5' into 'main'
...
Upgrade Deno to v2.0.5
See merge request soapbox-pub/ditto!582
2024-11-07 17:35:44 +00:00
Alex Gleason
e1dc3d79a4
Upgrade Deno to v2.0.5
2024-11-07 11:32:34 -06:00
Alex Gleason
fe222f37e0
Merge branch 'ipfs-image-metadata' into 'main'
...
Add additional image metadata for images
Closes #248
See merge request soapbox-pub/ditto!570
2024-11-07 17:21:53 +00:00
Alex Gleason
f987effc15
Make media analyze optional (disabled by default)
2024-11-07 11:18:39 -06:00
Alex Gleason
721fe52142
Reorganize sharp/blurhash into upload.ts
2024-11-07 11:09:20 -06:00
Alex Gleason
a294724946
Merge remote-tracking branch 'origin/main' into ipfs-image-metadata
2024-11-07 10:13:30 -06:00
Siddharth Singh
e96a9e4f35
replace toByteArray with Response(stream).bytes()
2024-11-06 12:12:27 +05:30
Alex Gleason
840cacd561
Merge branch 'add-short-description-field' into 'main'
...
fix(updateInstanceController): allow for setting the tagline
See merge request soapbox-pub/ditto!581
2024-11-05 17:39:55 +00:00
P. Reis
9907d7ffd8
fix(updateInstanceController): allow for setting the tagline
2024-11-05 14:36:48 -03:00
Alex Gleason
7f02657306
Merge branch 'feat-set-kind-0-api' into 'main'
...
Create updateInstanceController endpoint (allow for setting the kind 0, screenshots go into kind 0 content)
Closes #259 and #257
See merge request soapbox-pub/ditto!577
2024-11-05 17:02:08 +00:00
P. Reis
af0211d65b
fix(updateInstanceController): remove 'event' field from meta
2024-11-05 09:46:33 -03:00
P. Reis
ea24050a27
refactor: change thumbnailSchema to schemas/mastodon.ts
2024-11-05 09:02:27 -03:00
Alex Gleason
8b3f8809ee
Merge branch 'wellknown' into 'main'
...
Let users host arbitrary .well-known paths
See merge request soapbox-pub/ditto!580
2024-11-04 23:43:25 +00:00
Alex Gleason
e3aed99605
Let users host arbitrary .well-known paths
2024-11-04 17:23:30 -06:00
Alex Gleason
1a50578b39
Add PleromaConfigDB module
2024-11-04 10:12:58 -06:00
P. Reis
f92c382da9
refactor: remove unused imports
2024-11-04 11:16:36 -03:00
P. Reis
bac2c51bc1
refactor: use screenshot_ids and thumbnail_id in updateInstanceController
2024-11-04 11:12:16 -03:00
P. Reis
cd7e6bbd43
feat: create thumbnailSchema
2024-11-04 11:10:27 -03:00
P. Reis
34d604dded
refactor: sizesSchema
2024-11-03 20:27:52 -03:00
P. Reis
c411a871ef
Merge branch 'main' into feat-set-kind-0-api
2024-11-01 23:19:53 -03:00
P. Reis
f0be2a1c02
fix: set thumbnail in
2024-11-01 23:19:17 -03:00
P. Reis
339b13c084
feat: create updateInstanceController
...
for now only update: title, description, screenshots (user must provide the image URL) and thumbnail (user must provide the image URL)
screenshots array is stored in the content of the kind 0 of the
2024-11-01 23:14:59 -03:00
P. Reis
c6ff4a9d25
feat: add sizesSchema
2024-11-01 23:07:51 -03:00
P. Reis
03d93ff810
fix: 'Context' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
2024-11-01 18:14:51 -03:00
Alex Gleason
d46af51604
Merge branch 'ephemeral' into 'main'
...
pipeline: improve error handling, include special treatment for ephemeral and NIP-46 events
See merge request soapbox-pub/ditto!576
2024-10-31 22:35:58 +00:00
Alex Gleason
e766f6c757
pipeline: improve error handling, include special treatment for ephemeral and NIP-46 events
2024-10-31 16:06:58 -05:00
Alex Gleason
47eca9e2f7
Merge branch 'fix-render-link-about' into 'main'
...
fix: render HTML link in bio
Closes #9
See merge request soapbox-pub/ditto!575
2024-10-31 17:06:43 +00:00
P. Reis
a883aea585
refactor: remove stripimeta in 'about' of renderAccount
2024-10-31 14:03:36 -03:00
P. Reis
e3fec6b938
fix: render HTML link in bio
2024-10-31 11:48:43 -03:00
Alex Gleason
40c24d927f
Merge branch 'fix-bio-number' into 'main'
...
fix: users can set their bio to a number
Closes #184
See merge request soapbox-pub/ditto!574
2024-10-30 19:28:25 +00:00
P. Reis
94431fadcd
fix: users can set their display_name to a number
2024-10-30 13:59:32 -03:00
P. Reis
0a7c0c60a9
fix: users can set their bio to a number
2024-10-30 13:48:35 -03:00
Siddharth Singh
38288aadb3
move tag logic to upload.ts
2024-10-30 11:06:48 +05:30
Siddharth Singh
e95441f5b9
revert changes to IPFSUploader and S3Uploader
2024-10-30 11:04:19 +05:30
Alex Gleason
96a11d42c9
Merge branch 'push-404' into 'main'
...
Fix 404 error in Web Push API
See merge request soapbox-pub/ditto!573
2024-10-29 18:08:51 +00:00
Alex Gleason
dc73749277
Fix 404 error in Web Push API
2024-10-29 13:05:50 -05:00
Alex Gleason
324ee58bd0
Merge branch 'fix-follow-people' into 'main'
...
fix: follow people
Closes #258
See merge request soapbox-pub/ditto!572
2024-10-29 14:13:43 +00:00
P. Reis
6fd0c273cb
fix: follow people
...
create a new migration that replaces the function to NOTIFY only the event id
2024-10-29 11:07:51 -03:00
Alex Gleason
9260c2ba90
Merge branch 'sticky-streaming' into 'main'
...
refactor(streaming): use better Sticky
See merge request soapbox-pub/ditto!571
2024-10-29 00:39:21 +00:00
P. Reis
fef787faad
refactor(streaming): use better Sticky
2024-10-28 20:41:07 -03:00
Alex Gleason
8ff4a0bdbd
Merge branch 'fix-statuses-posts-pagination' into 'main'
...
Fix pagination when searching for posts, enhance search a little bit
Closes #255
See merge request soapbox-pub/ditto!567
2024-10-27 20:48:47 +00:00
P. Reis
3c3f90eddb
refactor: kysely.selectNoFrom
2024-10-27 17:44:35 -03:00
P. Reis
f259ab8d88
refactor: rename queryWithoutPhraseto_tsquery to fallbackQuery
2024-10-27 15:50:15 -03:00
P. Reis
d06e0311c9
refactor: if statement lexemes
2024-10-27 15:48:04 -03:00
P. Reis
e8c66c77fc
refactor: don't parse twice
2024-10-27 15:41:21 -03:00
P. Reis
a690a2ff6f
Merge branch 'main' into fix-statuses-posts-pagination
2024-10-27 15:39:39 -03:00
P. Reis
553b17c646
refactor: tsdoc format
2024-10-27 15:38:35 -03:00
Alex Gleason
d52e717fb2
EventsDB: fix domain query with authors
2024-10-27 10:03:22 -05:00
Siddharth Singh
57725fa9ac
neatness
2024-10-27 10:21:53 +05:30
Siddharth Singh
713260e110
split off nip94 metadata stuff into its own file, port changes to s3uploader
2024-10-27 10:16:00 +05:30
Siddharth Singh
ff8374103e
remove unused dep
2024-10-27 10:00:47 +05:30
Siddharth Singh
f5f31ce98f
fix image uploads, use sharp to get image metadata instead of image-information
2024-10-27 09:13:48 +05:30
Siddharth Singh
de4b5f55d3
update lockfile
2024-10-27 09:13:48 +05:30
Siddharth Singh
b0a2422437
add more metadata to IPFSUploader
2024-10-27 09:13:48 +05:30
Alex Gleason
6171a321e2
Merge branch 'tribes-dockerfile-stuff' into 'main'
...
add allow-import flag to dockerfile
See merge request soapbox-pub/ditto!569
2024-10-27 02:29:45 +00:00
Alex Gleason
9b473406cf
Merge branch 'bunker-pubkey' into 'main'
...
Let bunker_pubkey be different from user pubkey
See merge request soapbox-pub/ditto!568
2024-10-26 23:46:15 +00:00
Alex Gleason
42f5e316a8
Let bunker_pubkey be different from user pubkey
2024-10-26 18:37:26 -05:00
P. Reis
d27ab3ce49
fix: pagination in searching statuses
2024-10-26 18:58:02 -03:00
P. Reis
8b050e7df1
question: isn't Kysely immutable?
...
cc https://www.kysely.dev/docs/getting-started#querying
2024-10-26 18:53:19 -03:00
P. Reis
bbd692c58f
fix(extractIdentifier): only return value if it has a domain
...
before this commit, if the value was it would be true
2024-10-26 18:50:42 -03:00
Alex Gleason
d28db38ba9
Merge branch 'deno-2.0.3' into 'main'
...
Upgrade deno to v2.0.3
See merge request soapbox-pub/ditto!566
2024-10-26 21:15:20 +00:00
Alex Gleason
eb5db9a30b
Upgrade deno to v2.0.3
2024-10-26 15:57:06 -05:00
Alex Gleason
2b4efd6a03
Merge branch 'fix-search-profile-pagination' into 'main'
...
fix: search profiles with offset pagination
See merge request soapbox-pub/ditto!564
2024-10-24 00:09:17 +00:00
P. Reis
89e475ca4a
fix: offset of zero 0 in accountSearchController
2024-10-23 20:42:10 -03:00
P. Reis
994dff8e79
fix: search profiles with offset pagination
2024-10-23 20:37:31 -03:00
Alex Gleason
28b874edc9
Merge branch 'fix-zap-pubkey-duplication' into 'main'
...
fix: duplicate pubkey of 'self' if zap tag
See merge request soapbox-pub/ditto!561
2024-10-20 02:21:00 +00:00
Alex Gleason
9ad9adcff5
Merge branch 'notify' into 'main'
...
Perform listen/notify of Nostr events to the pipeline
Closes #219
See merge request soapbox-pub/ditto!562
2024-10-20 02:18:22 +00:00
P. Reis
7d27a6e890
refactor: rewrite if statement
2024-10-19 23:16:04 -03:00
Alex Gleason
013917d612
Expose a generic listen method on the database adapters
2024-10-19 21:01:42 -05:00
Alex Gleason
4df61c0c59
pipeline: remove "event already in database" check
2024-10-19 20:55:09 -05:00
P. Reis
0abd567824
fix: duplicate pubkey of 'self' if zap tag
2024-10-19 22:31:41 -03:00
Alex Gleason
8155fae89a
Perform listen/notify of Nostr events to the pipeline
2024-10-19 20:27:46 -05:00
Alex Gleason
92a1d88923
Use Ditto planet as default instance thumbnail
2024-10-19 19:19:13 -05:00
Alex Gleason
67b17778d3
Merge branch 'all-trends-pagination' into 'main'
...
feat: pagination with Link headers in trendingStatusesController
Closes #236
See merge request soapbox-pub/ditto!560
2024-10-19 16:38:16 +00:00
P. Reis
e5d0634864
feat: pagination with Link headers in trendingStatusesController
2024-10-18 19:23:02 -03:00
Alex Gleason
10e1967ad3
Merge branch 'fix-zap-sender-missing-kind-0' into 'main'
...
Fix zap sender missing kind 0
Closes #237 and #254
See merge request soapbox-pub/ditto!558
2024-10-18 18:55:06 +00:00
Alex Gleason
68c1b31940
Merge branch 'dotenv' into 'main'
...
Add .env.test, use --env-file flag, remove TEST_DATABASE_URL, remove @std/dotenv
See merge request soapbox-pub/ditto!559
2024-10-18 18:39:55 +00:00
Alex Gleason
de2c0effbf
Remove import '@/config.ts' from trends script
2024-10-18 13:29:34 -05:00
Alex Gleason
c390481939
Remove TEST_DATABASE_URL
2024-10-18 13:25:39 -05:00
Alex Gleason
f6046c015b
Remove @std/dotenv
2024-10-18 13:22:34 -05:00
Alex Gleason
8944594c71
Pass --env-file into deno tasks, use a separate .env.test for tests
2024-10-18 13:20:30 -05:00
Alex Gleason
ef7c9e14db
Merge branch 'ci-truncate' into 'main'
...
Speed up migrations in tests
See merge request soapbox-pub/ditto!557
2024-10-18 18:13:16 +00:00
P. Reis
f581dcbcfb
fix(hydrate): make gatherAuthors() function async
2024-10-18 14:35:30 -03:00
P. Reis
a1bf808efd
fix: remove 'HEAD' from previous conflict
2024-10-18 14:30:15 -03:00
P. Reis
ceaf6534ae
Merge branch 'main' into fix-zap-sender-missing-kind-0
2024-10-18 14:27:42 -03:00
Alex Gleason
08cc4f1db9
Speed up migrations in tests
2024-10-18 12:24:49 -05:00
P. Reis
ead96af16f
fix: get all zap related authors (receivers, senders) inside gatherAuthors() function
2024-10-18 14:23:38 -03:00
Alex Gleason
b876cf368a
Merge branch 'fix-zap-post' into 'main'
...
fix(zapController): remove not needed arguments
See merge request soapbox-pub/ditto!556
2024-10-18 17:13:08 +00:00
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
035c57ac89
Merge branch 'deno-2.0.2' into 'main'
...
Upgrade Deno to v2.0.2
See merge request soapbox-pub/ditto!555
2024-10-18 13:38:46 +00:00
Alex Gleason
52df3b240e
Upgrade Deno to v2.0.2
2024-10-17 22:30:17 -05:00
Alex Gleason
4be6fe004d
Merge branch 'manifest-icons' into 'main'
...
webmanifest: add app icons
See merge request soapbox-pub/ditto!554
2024-10-17 23:22:03 +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
28e8dfb4ac
Merge branch 'push-zap-amount' into 'main'
...
Fix zap amount in web push notification
See merge request soapbox-pub/ditto!553
2024-10-17 20:21:21 +00: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
96416747c2
Merge branch 'revoke' into 'main'
...
Implement OAuth revoke endpoint
See merge request soapbox-pub/ditto!551
2024-10-17 19:24:53 +00:00
Alex Gleason
b4b7381b49
Implement OAuth revoke endpoint
2024-10-17 14:20:42 -05:00
Alex Gleason
66583e7f60
Merge branch 'ci-rm-postgres' into 'main'
...
Get rid of Postgres job in CI
See merge request soapbox-pub/ditto!550
2024-10-17 03:50:12 +00:00
Alex Gleason
5e415f897f
Get rid of Postgres job in CI
2024-10-16 22:43:38 -05:00
Alex Gleason
2764cbf97a
Merge branch 'deno-2.0.1' into 'main'
...
Upgrade to Deno v2.0.1
See merge request soapbox-pub/ditto!549
2024-10-17 03:30:26 +00:00
Alex Gleason
6e00412cc3
Upgrade to Deno v2.0.1
2024-10-16 20:27:46 -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
5b6cacc2ed
Merge branch 'push' into 'main'
...
Add Web Push API
See merge request soapbox-pub/ditto!524
2024-10-15 15:41:21 +00: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
Siddharth Singh
61ee6e5e8d
add allow-import flag to dockerfile
2024-10-13 23:47:29 +05:30
Alex Gleason
b6925a5491
webpush: enforce endpoint as a URL
2024-10-12 22:58:29 -05:00
Alex Gleason
3fa12e3ba5
Merge remote-tracking branch 'origin/main' into push
2024-10-11 18:06:37 -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
b2397bccdd
Upgrade @gleasonator/policy in deno.lock
2024-10-11 17:44:29 -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
432229c0f0
Merge branch 'update-credentials-fix' into 'main'
...
Make verify_credentials and update_credentials return a consistent CredentialAccount object
See merge request soapbox-pub/ditto!546
2024-10-11 21:31:22 +00: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
fab0c8a409
Merge branch 'upgrade-dockerfile-deno-version' into 'main'
...
upgrade deno version in dockerfile
See merge request soapbox-pub/ditto!544
2024-10-11 16:29:23 +00:00
Siddharth Singh
380ac42033
upgrade deno version in dockerfile
2024-10-11 21:50:40 +05:30
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
522a283af1
Merge branch 'translator-env' into 'main'
...
Translation refactors
See merge request soapbox-pub/ditto!542
2024-10-10 19:22:12 +00: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
b6f9fe5770
grafana: ditto_db_query_duration_ms -> ditto_db_query_duration_seconds
2024-10-10 13:26:05 -05:00
Alex Gleason
4597d1018e
Merge branch 'http-metrics' into 'main'
...
Record HTTP response time metrics
See merge request soapbox-pub/ditto!541
2024-10-10 18:25:17 +00: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
Alex Gleason
878535c428
Merge branch 'worker-names' into 'main'
...
Add names to web workers
See merge request soapbox-pub/ditto!540
2024-10-09 22:59:15 +00:00
Alex Gleason
4d146dcc98
Add names to web workers
2024-10-09 17:58:11 -05:00
Alex Gleason
0819049cb8
Merge branch 'handle-translate-error-not-supported' into 'main'
...
feat: return translation not supported error to the frontend
See merge request soapbox-pub/ditto!539
2024-10-09 22:24:09 +00:00
P. Reis
b86bd81ed2
refactor: cast correct error type
2024-10-09 19:19:54 -03:00
P. Reis
87e0f594df
refactor: throw new Error to have benefit of stack trace
2024-10-09 19:17:03 -03:00
P. Reis
54fa38795a
feat: return translation not supported error to the frontend
2024-10-09 18:52:23 -03:00
Alex Gleason
91b82c36a8
Merge branch 'translate-status' into 'main'
...
Feat: Support Machine Translations
Closes #201
See merge request soapbox-pub/ditto!537
2024-10-09 18:59:04 +00:00
P. Reis
cad0da2732
feat: rateLimit translate endpoint
2024-10-09 15:24:01 -03:00
P. Reis
57bbbb289b
fix: types must have the type prefix
...
apparently happens in Deno 2.0?
2024-10-09 15:22:09 -03:00
P. Reis
22fa3f944c
chore: update nostrify:db
2024-10-09 15:18:20 -03:00
P. Reis
728d7b33fb
Merge branch 'main' into translate-status
...
Conflicts:
deno.lock
I have let the changes of main to prevail, I will update nostrify:db manually
2024-10-09 15:14:22 -03:00
P. Reis
4f8c8fd1de
refactor: simply DittoTranslator interface and classes that implement it
2024-10-09 15:03:11 -03:00
P. Reis
c1c25d7c08
feat: create localeSchema
2024-10-09 14:57:28 -03:00
Alex Gleason
376fd8a956
Merge branch 'deno-2.0.0' into 'main'
...
Upgrade to Deno v2.0
See merge request soapbox-pub/ditto!538
2024-10-09 09:38:33 +00:00
Alex Gleason
df92483617
Add --allow-import to check task
2024-10-09 04:25:49 -05:00
Alex Gleason
bf2e20f2ce
Upgrade to Deno v2.0
2024-10-09 04:17:55 -05:00
Alex Gleason
d6b65245ea
Fix dompurify in deno.lock
2024-10-09 04:01:08 -05:00
Alex Gleason
90e0de2cac
Upgrade dompurify
2024-10-08 23:23:52 -05:00
Alex Gleason
455b2671f7
Merge remote-tracking branch 'origin/main' into push
2024-10-08 20:11:30 -05:00
Alex Gleason
11193fa689
Upgrade @gleasonator/policy in deno.lock
2024-10-08 20:11:12 -05:00
Alex Gleason
8278dbe152
Remove bip32
2024-10-08 20:02:10 -05:00
Alex Gleason
198ec973b6
Load VAPID keys from configuration
2024-10-08 19:57:46 -05:00
Alex Gleason
8f437839d0
Delete DittoWallet
2024-10-08 18:37:59 -05:00
Alex Gleason
8823c0987d
Actually push ??
2024-10-08 18:37:23 -05:00
P. Reis
49d815826c
refactor(languageSchema): enforce return type
2024-10-08 17:07:05 -03:00
P. Reis
fc5e9b2990
Revert "refactor: move getConfigs() function and frontendConfig logic to 'src/utils/frontendConfig.ts'"
...
This reverts commit ab85360d2f .
The discussion started publicly in Gitlab: https://gitlab.com/soapbox-pub/ditto/-/merge_requests/537#note_2148430111
Then it kept going in Element, basically the purpose of the commit is
correct, but the way Patrick did it is not good.
2024-10-08 16:58:42 -03:00
P. Reis
20caaa9ebd
refactor: LibreTranslate and DeepL with separate environment variables for their configuration
2024-10-08 16:53:30 -03:00
Alex Gleason
1ed6cac1c4
Add a crypto module to convert ECDSA private CryptoKey into a public key
2024-10-08 13:56:46 -05:00
Alex Gleason
8abac7ffa7
InstanceV2: remove supported_mime_types property
2024-10-08 12:52:14 -05:00
P. Reis
dbd590228d
fix: typo
2024-10-08 14:39:59 -03:00
Alex Gleason
6430dd11ad
Merge remote-tracking branch 'origin/main' into push
2024-10-08 12:37:11 -05:00
P. Reis
f76ee000b0
refactor: use 'lang' instead of 'target_language'
2024-10-08 14:35:51 -03:00
Alex Gleason
e6495c3687
Also add nostr to InstanceV2
2024-10-08 12:35:03 -05:00
Alex Gleason
248324f642
Add pleroma to InstanceV2
2024-10-08 12:32:00 -05:00
P. Reis
a3bc5ec5c3
refactor: remove translation enabled in instanceV1Controller
2024-10-08 14:27:00 -03:00
P. Reis
ba23931727
refactor: remove unused imports
2024-10-08 14:25:25 -03:00
P. Reis
d4a8ec21fe
fix: add 'pure' option in EventsDB
...
if pure is true, EventsDB will return a Nostr event, otherwise it will return a Ditto event
2024-10-08 14:17:27 -03:00
P. Reis
df27959d35
fix(relay.ts): purify event
2024-10-08 14:15:48 -03:00
P. Reis
17be4ab48f
fix(instanceV1Controller): add translation field
2024-10-08 11:11:29 -03:00
P. Reis
3f00f255a5
fix: type assertions in EventsDB
2024-10-08 11:01:34 -03:00
P. Reis
6c93153117
refactor: get language from event itself
2024-10-07 17:55:50 -03:00
P. Reis
acbdae29ae
fix(EventsDB): type is correct, ignore type complaint
2024-10-07 17:54:41 -03:00
P. Reis
bfab84d937
refactor: make provider lowercase because supporting case insensitive is allegedly protocol bloat
2024-10-07 17:54:03 -03:00
P. Reis
4712cb1d80
fix: fix language property in the Mastodon API
2024-10-07 16:08:23 -03:00
P. Reis
bbbce958d9
chore: update nostrify:db
2024-10-07 16:04:59 -03:00
P. Reis
01a16473ab
Merge branch 'main' into translate-status
2024-10-07 15:02:47 -03:00
P. Reis
b369b2171d
feat: create translateController - /api/v1/statuses/:id/translate
2024-10-07 15:02:04 -03:00
P. Reis
8e58b1a7d4
feat: create translatorMiddleware
2024-10-07 15:00:46 -03:00
P. Reis
a2d8478e1a
test(LibreTranslateTranslator): create multiple tests
2024-10-07 14:59:05 -03:00
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
Alex Gleason
ff2553eb0f
Return a PushSubscription response
2024-10-06 16:07:32 -05:00
Alex Gleason
757b6c7e1c
Merge remote-tracking branch 'origin/main' into push
2024-10-06 15:51:50 -05:00
Alex Gleason
406cc6506b
Merge branch 'captcha' into 'main'
...
Puzzle Captcha API
See merge request soapbox-pub/ditto!536
2024-10-05 20:59:37 +00:00
Alex Gleason
3aaf5030ca
captcha: add a small amount of noise
2024-10-05 15:24:44 -05:00
P. Reis
f3b7f91a07
feat: languageSchema converts value to lowercase and returns type LanguageCode
2024-10-04 23:37:01 -03:00
Alex Gleason
1cd7c99bda
Add account.source.ditto.captch_solved field
2024-10-04 19:26:47 -05:00
Alex Gleason
3b5b4cbd6b
Expose the Ditto pubkey to the policy worker
2024-10-04 19:21:56 -05:00
Alex Gleason
a2e8de6c36
Rate-limit the captcha endpoints
2024-10-04 16:48:24 -05:00
Alex Gleason
5ed683b146
Add puzzle source files
2024-10-04 16:43:33 -05:00
Alex Gleason
18f1a94520
captcha: show a random image, preload backgrounds into memory
2024-10-04 16:42:02 -05:00
Alex Gleason
c81005a050
captcha: refactor canvas size globals
2024-10-04 15:56:32 -05:00
Alex Gleason
6d09f69e26
Move captcha graphics
2024-10-04 15:48:34 -05:00
Alex Gleason
71873997e5
captcha: refactor canvas calls
2024-10-04 15:42:01 -05:00
Alex Gleason
cdf727e5c7
captcha: use an already transparent png with stroke to make the hole
2024-10-04 15:10:42 -05:00
Alex Gleason
030bfa94d6
captcha: rename puzzle to bg, and piece to puzzle
2024-10-04 14:22:17 -05:00
Alex Gleason
68c0d437ee
captcha: resize pieces, require nip98 auth
2024-10-04 13:34:12 -05:00
Alex Gleason
952d5e4370
Publish a label when the user solves a captcha
2024-10-04 12:53:37 -05:00
Alex Gleason
467a49bd40
Add captcha verify controller
2024-10-04 12:43:29 -05:00
Alex Gleason
e57dd8911c
captcha: don't do the encryption thing, just use a ttl cache
2024-10-04 12:07:12 -05:00
Alex Gleason
03c9340eb2
Mask the puzzle piece
2024-10-03 20:15:16 -05:00
Alex Gleason
707674db7c
Add captcha token comment
2024-10-03 19:38:03 -05:00
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
045508c4ba
Merge branch 'more-dockerfile-fixes' into 'main'
...
remove expose directive in Dockerfile
See merge request soapbox-pub/ditto!534
2024-10-04 00:22:07 +00:00
Alex Gleason
d0666ff818
Merge branch 'fix-db-export' into 'main'
...
fix filter generation in db:export
See merge request soapbox-pub/ditto!533
2024-10-04 00:20:00 +00:00
Siddharth Singh
92aebbc847
remove stupid expose directive
2024-10-04 05:46:49 +05:30
Siddharth Singh
04f155580c
fix filter generation in db:export
2024-10-04 05:33:24 +05:30
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
P. Reis
2ca421bef2
Merge branch 'main' into translate-status
2024-10-03 19:56:13 -03: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
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
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
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
f8fcb9ac77
Merge branch 'policy-signal' into 'main'
...
Pass signal into policy
See merge request soapbox-pub/ditto!514
2024-09-23 23:10:00 +00: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
Alex Gleason
3dd53f71e9
Merge branch 'catch-update-stats' into 'main'
...
fix: catch updateStats() function
Closes #221
See merge request soapbox-pub/ditto!513
2024-09-23 22:53:41 +00:00
P. Reis
42371bcc31
fix: catch updateStats() function
2024-09-23 17:47:55 -03:00
Alex Gleason
e0b966bb6d
Merge branch 'add-sticky-to-relay' into 'main'
...
Sticky Notes: add "ditto:relay" in /relay endpoint
See merge request soapbox-pub/ditto!512
2024-09-23 18:50:58 +00:00
P. Reis
92d8f9b8c2
refactor(pipeline.ts): use correct Stickynotes, and not legacy Debug
2024-09-23 15:36:05 -03:00
P. Reis
60ebff45d5
refactor: use correct Stickynotes, and not legacy Debug
2024-09-23 15:33:14 -03:00
P. Reis
1a1adc1654
feat: add ditto:relay in /relay - sticky notes
2024-09-23 14:47:17 -03:00
Alex Gleason
70e27b04f4
Merge branch 'deno-2.0' into 'main'
...
Ugrade to Deno 2.0
See merge request soapbox-pub/ditto!511
2024-09-22 23:35:07 +00:00
Alex Gleason
8267916466
Add back pipeline test
2024-09-22 18:01:07 -05:00
Alex Gleason
ebce4a8b1d
Fix a few more type errors, whoops
2024-09-22 17:46:21 -05:00
Alex Gleason
b6e7a5529f
Downgrade GitLab CI to rc3 for now
2024-09-22 17:38:31 -05:00
Alex Gleason
cd66234af7
Ugrade to Deno 2.0
2024-09-22 17:35:04 -05:00
Alex Gleason
cccb3ad8d7
Merge branch 'fix-lru' into 'main'
...
SimpleLRU: fix repeated calls fetching
See merge request soapbox-pub/ditto!510
2024-09-22 21:13:04 +00:00
Alex Gleason
6745e96c64
SimpleLRU: fix repeated calls fetching
2024-09-22 16:06:10 -05:00
Alex Gleason
ce562b3b6a
Upgrade @gleasonator/policy in deno.lock
2024-09-22 14:41:34 -05:00
Alex Gleason
dee635235b
Merge branch 'fix-streaming' into 'main'
...
pipeline: fix events not being pushed through streaming API
Closes #206
See merge request soapbox-pub/ditto!509
2024-09-22 16:56:08 +00:00
Alex Gleason
c4391ccd99
pipeline: fix events not being pushed through streaming API
...
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/206
2024-09-22 11:49:37 -05:00
Alex Gleason
2587b57794
grafana: add streaming API section
2024-09-21 22:27:00 -05:00
Alex Gleason
1be8fcbcdf
Merge branch 'streaming-metrics' into 'main'
...
Streaming metrics
See merge request soapbox-pub/ditto!508
2024-09-22 03:17:07 +00:00
Alex Gleason
195cf9f44e
metrics: add messages sent and received by streaming API
2024-09-21 21:44:24 -05:00
Alex Gleason
fc7228e183
Streaming metrics
2024-09-21 21:40:52 -05:00
Alex Gleason
323d97e5e0
Upgrade @gleasonator/policy in deno.lock
2024-09-21 21:01:11 -05:00
Alex Gleason
4598782a38
Upgrade @gleasonator/policy in deno.lock
2024-09-21 18:12:57 -05:00
Alex Gleason
7ec4be5011
Add gleasonator-policy 0.6.0 to deno.lock
2024-09-21 16:56:01 -05:00
Alex Gleason
6f487c0891
grafana: fix datasource variables
2024-09-21 15:10:59 -05:00
Alex Gleason
7d1b64c234
Merge branch 'relay-conn-metrics' into 'main'
...
relay: fix connection metrics
Closes #203
See merge request soapbox-pub/ditto!507
2024-09-21 20:09:57 +00:00
Alex Gleason
5a0a2087e5
relay: fix connection metrics
2024-09-21 14:48:50 -05:00
Alex Gleason
9c9b87bc94
grafana: make caches into gauges
2024-09-21 11:36:08 -05:00
Alex Gleason
15372ceb43
Merge branch 'inc-cache' into 'main'
...
Make cache settings configurable, increase default values
See merge request soapbox-pub/ditto!506
2024-09-20 18:29:29 +00:00
Alex Gleason
454b362825
deno lint
2024-09-20 13:24:33 -05:00
Alex Gleason
807bc78472
Let caches be configurable
2024-09-20 13:22:45 -05:00
Alex Gleason
099fec6e31
Increase nip05 cache to 3000, link previews to 1000
2024-09-20 13:13:26 -05:00
Alex Gleason
efb37701f0
grafana: add cache section
2024-09-20 13:03:30 -05:00
Alex Gleason
7c45d13849
Merge branch 'cache-metrics' into 'main'
...
Add cache metrics
See merge request soapbox-pub/ditto!505
2024-09-20 17:41:12 +00:00
Alex Gleason
58bf286ce0
Add cache metrics
2024-09-20 12:34:54 -05:00
Alex Gleason
084e3c8341
note: test that mentions with commas get parsed correctly
2024-09-20 11:46:14 -05:00
Alex Gleason
80302b3915
Merge branch 'stats64' into 'main'
...
Use char(64) for stats primary keys
See merge request soapbox-pub/ditto!504
2024-09-20 15:37:35 +00:00
Alex Gleason
f0c8096498
stats64: delete invalid rows first
2024-09-20 10:07:50 -05:00
Alex Gleason
2b2cdca282
Use char(64) for stats primary keys
2024-09-20 09:58:46 -05:00
Alex Gleason
e27c1519fb
Merge branch 'followers-index' into 'main'
...
author_stats: add index on followers_count
See merge request soapbox-pub/ditto!503
2024-09-20 14:20:09 +00:00
Alex Gleason
c582b1c520
author_stats: add index on followers_count
2024-09-20 09:16:09 -05:00
Alex Gleason
ab727c3940
Merge branch 'move-author-search-to-author-stats' into 'main'
...
Order search by followers count & Move author search to author stats
Closes #140
See merge request soapbox-pub/ditto!500
2024-09-20 13:57:31 +00:00
Alex Gleason
54d7a12263
Merge branch 'admin-skip-policy' into 'main'
...
pipeline: let ditto admin skip the policy
See merge request soapbox-pub/ditto!502
2024-09-20 13:54:57 +00:00
P. Reis
b13e924001
fix: build search and also return it in countAuthorStats() function
2024-09-20 10:25:47 -03:00
P. Reis
578f269a65
refactor: countAuthorStats() function does not return search
2024-09-20 09:55:25 -03:00
Alex Gleason
5dca8d4950
pipeline: let ditto admin skip the policy
2024-09-19 21:57:59 -05:00
Alex Gleason
cc2b5cf66a
Merge branch 'firehose-kinds' into 'main'
...
Add FIREHOSE_KINDS variable
See merge request soapbox-pub/ditto!501
2024-09-20 02:56:03 +00:00
Alex Gleason
b53c6dab62
Add FIREHOSE_KINDS variable
2024-09-19 21:51:48 -05:00
P. Reis
ebeb150463
refactor: use search in author_stats
2024-09-19 19:37:13 -03:00
P. Reis
1b6e9160ec
test: update to use author_stats table
2024-09-19 19:36:44 -03:00
P. Reis
2727523540
feat: order search by followers count also
2024-09-19 19:36:13 -03:00
P. Reis
f063da1b86
refactor: add search field to AuthorStatsRow, remove AuthorSearch interface
2024-09-19 19:35:38 -03:00
P. Reis
017c17c8a2
refactor: remove author_search table, put search in author_stats
2024-09-19 19:35:05 -03:00
Alex Gleason
d1f452d87b
Merge branch 'fix-pg-trgm-operator' into 'main'
...
Fix search, use word_similarity operator
Closes #213
See merge request soapbox-pub/ditto!498
2024-09-19 13:58:45 +00:00
P. Reis
2f27e22b4c
test(getPubkeysBySearch): change search query
2024-09-19 10:15:41 -03:00
P. Reis
148e714863
fix(pg_trgm): use <% instead of %
2024-09-19 10:07:04 -03:00
P. Reis
aa07809e3f
Merge branch 'main' into zap-notification-streaming
2024-09-18 18:32:35 -03:00
Alex Gleason
ee68fbad48
Merge branch 'domain-search-perf' into 'main'
...
EventsDB: fix domain search performance (also allow searching by multiple languages/domains)
See merge request soapbox-pub/ditto!497
2024-09-18 18:46:37 +00:00
Alex Gleason
5ecf016cb9
EventsDB: fix domain search performance (also allow searching by multiple languages/domains)
2024-09-18 13:42:43 -05:00
Alex Gleason
f55a6d515a
Merge branch 'enhance-profile-search-again' into 'main'
...
feat: show users you follow first in search
Closes soapbox#1724
See merge request soapbox-pub/ditto!494
2024-09-18 18:02:15 +00:00
Alex Gleason
8890f6bce5
searchEvents: fix account_id, simplify code
2024-09-18 12:58:17 -05:00
P. Reis
4ae17c4993
refactor: make getPubkeysBySearch() function return Set<string>
2024-09-18 14:15:18 -03:00
P. Reis
f1c0d8c18f
refactor(getPubkeysBySearch): rename followList to followedPubkeys
2024-09-18 11:30:41 -03:00
P. Reis
373e9ca6d8
Merge branch 'main' into zap-notification-streaming
2024-09-17 17:06:45 -03:00
P. Reis
f73b20bf03
refactor: make getPubkeysBySearch() function use set of strings Set<string>
2024-09-17 14:50:33 -03:00
P. Reis
47c1d290b0
Merge branch 'main' into enhance-profile-search-again
2024-09-17 14:42:15 -03:00
Alex Gleason
c67d27e580
Merge branch 'refactor-queries-ts' into 'main'
...
refactor: getFollowedPubkeys() and getFeedPubkeys() functions return Set<string>
See merge request soapbox-pub/ditto!496
2024-09-17 17:40:39 +00:00
P. Reis
19069c0417
refactor: return set in a different way
2024-09-17 14:37:04 -03:00
P. Reis
7eab62b9a9
refactor: getFollowedPubkeys() and getFeedPubkeys() functions return Set<string>
2024-09-17 14:02:46 -03:00
Alex Gleason
8ba9e6e8b8
Merge branch 'nip70' into 'main'
...
Block NIP-70 protected events
See merge request soapbox-pub/ditto!495
2024-09-17 14:48:31 +00:00
Alex Gleason
d32b12c814
Block NIP-70 protected events
2024-09-17 09:44:46 -05:00
P. Reis
8cd212e407
test: add missing argument in getPubkeysBySearch() function
2024-09-17 11:09:39 -03:00
P. Reis
52001373e0
feat: show users you follow first in search
...
getPubkeysBySearch() function refactored to accept a followList argument
2024-09-17 11:04:27 -03:00
Alex Gleason
e0dee33aec
Merge branch 'pglite-debug' into 'main'
...
Add PGLITE_DEBUG environment variable
See merge request soapbox-pub/ditto!493
2024-09-16 17:36:50 +00:00
Alex Gleason
8e3ddaa056
Add PGLITE_DEBUG environment variable
2024-09-16 12:31:50 -05:00
P. Reis
2fe6a8fde5
refactor: move getPubkeysBySearch () function to a new location
2024-09-16 14:24:26 -03:00
P. Reis
a18b049eb7
feat: make notifications great again
...
it works the same as before, but with way less code
2024-09-16 14:08:45 -03:00
P. Reis
9b66499df3
fix: get zap recipient in gatherAuthors() function
...
this is needed to work correctly in notifications
2024-09-16 14:00:12 -03:00
P. Reis
af13614f1a
test(hydrate): expect zap_message also
2024-09-16 13:31:49 -03:00
P. Reis
04a9a83fed
feat: hydrate zap_message
2024-09-16 13:30:43 -03:00
P. Reis
7fea333483
feat(DittoEvent): add zap_message field
2024-09-16 13:30:01 -03:00
P. Reis
07c364b829
test(hydrate): add zap receipt, kind 9735
2024-09-16 13:17:42 -03:00
P. Reis
4f0f1182b8
test(fixtures): jack zaps patrick
2024-09-16 13:15:58 -03:00
P. Reis
10f30b3661
test(fixtures): patrick kind 1, post zapped
2024-09-16 13:15:43 -03:00
P. Reis
5caa482806
test(fixtures): patrick kind 0
2024-09-16 13:15:21 -03:00
P. Reis
516866a905
test(fixtures): jack kind 0
2024-09-16 13:15:05 -03:00
P. Reis
a2077e3d40
feat: hydrate zap receipt kind 9735 - gatherZapSender, gatherZapped
2024-09-16 13:13:55 -03:00
P. Reis
6e2508063b
feat(DittoEvent): add zapped, zap_sender & zap_amount
2024-09-16 13:10:10 -03:00
P. Reis
8b5940298c
Merge branch 'main' into zap-notification-streaming
2024-09-16 09:18:40 -03:00
Alex Gleason
4d0ae401b3
Merge branch 'fix-postgres-password-input' into 'main'
...
Change setup.ts to use password input instead of plaintext
See merge request soapbox-pub/ditto!492
2024-09-16 00:28:00 +00:00
Siddharth Singh
0dcb1965be
Change setup.ts to use password input instead of plaintext
2024-09-16 05:52:51 +05:30
Alex Gleason
a87497380a
Make pipeline query easier to look at
2024-09-15 19:22:14 -05:00
Alex Gleason
718795fcd1
Merge branch 'fix-postgresjs-error' into 'main'
...
Fix ambiguous postgres.js errors
Closes #205
See merge request soapbox-pub/ditto!491
2024-09-16 00:03:39 +00:00
Alex Gleason
5a98ba86bf
Fix ambiguous postgres.js errors
2024-09-15 18:58:34 -05:00
Alex Gleason
8510f22d1b
Only save the nip05 in author search if it's valid
2024-09-15 18:33:16 -05:00
Alex Gleason
a8df213aec
Merge branch 'language-detection' into 'main'
...
Support NIP-50 language extension
See merge request soapbox-pub/ditto!489
2024-09-15 23:11:30 +00:00
Alex Gleason
394021e485
Don't use semi-colons in migration
2024-09-15 17:38:16 -05:00
Alex Gleason
642ecfd36f
Rename language migration to 033
2024-09-15 17:26:02 -05:00
Alex Gleason
8da223ad6c
Merge remote-tracking branch 'origin/main' into language-detection
2024-09-15 17:25:36 -05:00
Alex Gleason
580e773bfc
Merge branch 'enchance-profile-search' into 'main'
...
Enchance profile search
Closes soapbox#1710
See merge request soapbox-pub/ditto!488
2024-09-15 21:46:49 +00:00
P. Reis
cbc1691002
feat: zap notification in streaming
2024-09-15 18:34:11 -03:00
P. Reis
dc69f21e0b
refactor: write map function in a cleaner way
2024-09-15 17:46:10 -03:00
P. Reis
c5711ea071
refactor(accountSearchController): only reassign events if event is undefined
2024-09-15 17:42:58 -03:00
P. Reis
ed74b2464a
refactor: write it like a normal if statement
2024-09-15 17:42:26 -03:00
P. Reis
3b8a800cd2
refactor(search enchance): map over pubkeys instead of events
2024-09-15 17:27:56 -03:00
P. Reis
d7ae3722c8
refactor: insert each event per iteration in for loop - db:populate-search
2024-09-15 16:52:49 -03:00
Alex Gleason
f8902760ce
Make the language index a compound index
2024-09-15 13:37:23 -05:00
Alex Gleason
eede3909b1
Upgrade @nostrify/db to fix table joins
2024-09-15 13:05:54 -05:00
Alex Gleason
c24d11c6f3
Support NIP-50 language extension
2024-09-15 12:40:58 -05:00
P. Reis
f99ea7c33f
refactor(getPubkeysBySearch): cast as string
2024-09-13 18:57:47 -03:00
P. Reis
197b2c8c8b
refactor(populate search script): use store.req instead of streaming
2024-09-13 18:49:20 -03:00
P. Reis
b3e56320a0
feat(accountSearchController): return accounts in autocomplete form
2024-09-13 18:41:20 -03:00
P. Reis
6387ee440c
feat: return multiple accounts in searchController
2024-09-13 16:36:01 -03:00
P. Reis
69c2158131
refactor: return ordered accounts by similarity relevance in searchEvents() function
2024-09-13 16:20:56 -03:00
P. Reis
be76197e3a
refactor: remove handleAuthorSearch() function and put its logic inside parseMetadata() function
2024-09-13 16:20:52 -03:00
P. Reis
935cc7c5a5
refactor: remove NIP-50 search if looking for accounts, use same filter
2024-09-13 14:33:34 -03:00
P. Reis
a974f4230d
Merge branch 'main' into enchance-profile-search
2024-09-13 10:34:45 -03:00
P. Reis
24d909fd28
feat: create script to populate author_search table
2024-09-13 10:34:15 -03:00
P. Reis
a6f1098bc6
test: getPubkeysBySearch() function
2024-09-13 10:32:05 -03:00
P. Reis
e1cd1777e3
test: add author_search table in createTestDB to drop it after use
2024-09-13 10:30:10 -03:00
P. Reis
9d2667679f
feat(pipeline.ts): create handleAuthorSearch() function
2024-09-13 10:28:54 -03:00
P. Reis
c03ea07dcb
feat: create getPubkeysBySearch() function and use it inside searchEvents() function
2024-09-13 10:27:12 -03:00
P. Reis
b5aefdd93e
feat: add pg_trgm extension in PGlite constructor
2024-09-13 10:24:33 -03:00
P. Reis
8bc8712cf3
feat: create and add author_search interface to DittoTables
2024-09-13 10:23:08 -03:00
P. Reis
40c187680e
feat: create author_search table
2024-09-13 10:22:05 -03:00
Alex Gleason
b384fcf572
Make EventsDB extend NPostgres
2024-09-12 17:22:44 -05:00
Alex Gleason
4955be4104
Merge branch 'stats-inflation' into 'main'
...
Fix stat inflation
See merge request soapbox-pub/ditto!487
2024-09-12 18:48:38 +00:00
Alex Gleason
1732b69022
Remove unused Storages.close method
2024-09-12 13:39:02 -05:00
Alex Gleason
a0fd702e09
Revert DittoPglite
2024-09-12 13:38:00 -05:00
Alex Gleason
8316762370
Remove this DittoExit stuff (since I'm not convinced it's needed)
2024-09-12 13:37:21 -05:00
Alex Gleason
b3cfd5e12c
waitReady is not actually needed
2024-09-12 13:17:21 -05:00
Alex Gleason
c50c63f954
pipeline: purifyEvent before passing it to storage
2024-09-12 13:10:36 -05:00
Alex Gleason
fc912f185e
Gracefully start and exit the database
2024-09-12 13:03:23 -05:00
Alex Gleason
d67f2a27ea
stats: use the NPostgres transaction method to avoid transactions within transactions
2024-09-12 11:30:57 -05:00
Alex Gleason
55ee8eaf74
Fix stat inflation
2024-09-12 11:09:54 -05:00
Alex Gleason
593cedba06
grafana: add API endpoints row
2024-09-11 21:34:16 -05:00
Alex Gleason
f7ee59146e
Clean up config
2024-09-11 18:30:23 -05:00
Alex Gleason
20d1f885ac
Upgrade gleasonator-policy in deno.lock
2024-09-11 16:53:02 -05:00
Alex Gleason
b449b17fbe
Add updated gleasonator-policy to deno.lock
2024-09-11 16:11:09 -05:00
Alex Gleason
6b66e61ee9
PolicyWorker: mock Deno.env
2024-09-11 14:34:41 -05:00
Alex Gleason
a1585d81aa
Merge branch 'store-policy' into 'main'
...
Expose db to Policy script
See merge request soapbox-pub/ditto!486
2024-09-11 19:21:11 +00:00
Alex Gleason
cae0f492f3
Let PolicyWorker run in sandbox with store
2024-09-11 14:04:11 -05:00
Alex Gleason
ebc0250d81
DittoDB.getInstance() -> Storages.kysely()
2024-09-11 13:23:06 -05:00
Alex Gleason
d2fb3fd253
Make EventsDB not rely on Conf
2024-09-11 13:06:20 -05:00
Alex Gleason
624b6b278e
Merge branch 'rm-sqlite' into 'main'
...
Remove SQLite support, simplify database code
See merge request soapbox-pub/ditto!485
2024-09-11 17:07:08 +00:00
Alex Gleason
fad40f1c30
createTestDB: don't accept an arg
2024-09-11 11:57:28 -05:00
Alex Gleason
f3ae200833
Simplify database interfaces, make tests use pglite
2024-09-11 11:48:58 -05:00
Alex Gleason
dc8d09a9da
Remove SQLite support
2024-09-11 11:08:33 -05:00
Alex Gleason
f76d0af16d
Add TEST_DATABASE_URL env, change database defaults
2024-09-11 10:28:06 -05:00
Alex Gleason
a888f43288
Merge branch 'pglite' into 'main'
...
Add support for pglite
See merge request soapbox-pub/ditto!483
2024-09-10 21:12:47 +00:00
Alex Gleason
25a8f27cb7
ci: upgrade deno to v1.46.3
2024-09-10 16:01:13 -05:00
Alex Gleason
6a14272184
Make pglite work
2024-09-10 16:00:16 -05:00
Alex Gleason
9331ab4ac1
grafana: add system usage, break up into rows
2024-09-08 13:31:09 -05:00
Alex Gleason
ca1455c59a
Merge branch 'render-unknown' into 'main'
...
Don't limit statuses to kind 1
See merge request soapbox-pub/ditto!484
2024-09-08 14:08:37 +00:00
Alex Gleason
2309fd72d1
Don't limit statuses to kind 1
2024-09-08 09:05:23 -05:00
Alex Gleason
8a94e8deb3
grafana: fix db effort query
2024-09-08 05:38:33 -05:00
Alex Gleason
819957da49
Upgrade kysely-pglite
2024-09-07 20:56:50 -05:00
Alex Gleason
69329674e1
Add support for pglite
2024-09-07 16:38:28 -05:00
Alex Gleason
044708d49f
Merge branch 'fetch-ua' into 'main'
...
Fetch link previews with facebookexternalhit instead of WhatsApp/2 by default, make it configurable
See merge request soapbox-pub/ditto!482
2024-09-07 18:12:33 +00:00
Alex Gleason
a19b7fbe9e
Fetch link previews with facebookexternalhit instead of WhatsApp/2 by default, make it configurable
2024-09-07 13:09:10 -05:00
Alex Gleason
3af56995af
Merge branch 'ansible' into 'main'
...
Add ansible playbook to update multiple Ditto servers at once
See merge request soapbox-pub/ditto!481
2024-09-07 16:01:24 +00:00
Alex Gleason
23f6038427
Add ansible playbook to update multiple Ditto servers at once
2024-09-07 10:54:48 -05:00
Alex Gleason
ac4a63bdcc
deno task soapbox: don't prompt to overwrite
2024-09-07 10:43:01 -05:00
Alex Gleason
fac484c651
Merge branch 'attachments-simplify' into 'main'
...
Remove unattached_media table, switch to LRUCache, fix uploads in random order
Closes #192
See merge request soapbox-pub/ditto!480
2024-09-07 15:35:44 +00:00
Alex Gleason
99a25e1e18
media: fix setting description
2024-09-07 10:32:14 -05:00
Alex Gleason
8efd6fbb20
Remove unattached_media table, replace with LRUCache, fix media upload order problem
2024-09-07 10:24:56 -05:00
Alex Gleason
85000cd00e
Merge branch 'mention-link-fix' into 'main'
...
Fix rendering mentions inside of URLs
See merge request soapbox-pub/ditto!479
2024-09-07 14:44:56 +00:00
Alex Gleason
ddba16551a
Fix rendering mentions inside of URLs
2024-09-07 09:41:43 -05:00
Alex Gleason
1a98049ee8
Merge branch 'prom-metrics-best' into 'main'
...
Update Prometheus metrics to conform to best practices
See merge request soapbox-pub/ditto!478
2024-09-07 14:15:07 +00:00
Alex Gleason
537de85421
Add grafana dashboard.json
2024-09-07 09:02:14 -05:00
Alex Gleason
4a578528f5
Add back pool size gauge
2024-09-07 09:00:18 -05:00
Alex Gleason
5454942a2c
Update Prometheus metrics to conform to best practices
2024-09-07 08:52:02 -05:00
Alex Gleason
a7292b1b8d
Merge branch 'fix-zap-notification' into 'main'
...
fix(zap notification): put kind 9735 in the first filter
See merge request soapbox-pub/ditto!477
2024-09-06 05:43:01 +00:00
P. Reis
a8900b3217
fix(zap notification): put kind 9735 in the first filter
2024-09-05 18:43:02 -03:00
Alex Gleason
4373a1eea9
Merge branch 'zap-notification' into 'main'
...
Implement zap notifications + Fix notification pagination
Closes #193
See merge request soapbox-pub/ditto!474
2024-09-05 20:14:54 +00:00
P. Reis
486dff83b9
fix: pass parameters params in ditto:zap notification
2024-09-03 22:24:01 -03:00
P. Reis
6d9d2fd42a
fix: get event id from max_id
...
sometimes the 'max_id' format can come as `${created_at}-${id}`
so if that's the case, we split by the - (minus) character
2024-09-03 22:23:55 -03:00
Alex Gleason
3fa97c0533
Merge branch 'fix-streaming-self' into 'main'
...
streaming: don't notify self of own post
See merge request soapbox-pub/ditto!475
2024-09-02 23:11:41 +00:00
Alex Gleason
7c319c6ff0
streaming: don't notify self of own post
2024-09-03 00:58:35 +02:00
Alex Gleason
e40201ffb5
Merge branch 'clean-error-types' into 'main'
...
feat: add clean type errors task
See merge request soapbox-pub/ditto!472
2024-09-02 22:56:32 +00:00
P. Reis
1777224f97
refactor: rename clean:type-errors to clean:deps
2024-09-02 10:00:23 -03:00
P. Reis
8e8f8767b4
Merge branch 'main' into zap-notification
2024-09-02 09:54:45 -03:00
P. Reis
96e99f38c4
feat(views): render and return zap notification
2024-09-02 09:54:24 -03:00
P. Reis
729471d692
feat(notifications api): implement zap notification
...
calls database for zap events
2024-09-02 09:53:42 -03:00
Alex Gleason
b909f4e355
Merge branch 'store-alt-text' into 'main'
...
Store alt text along with other imeta, and render it when requested
Closes #172
See merge request soapbox-pub/ditto!464
2024-09-01 20:10:31 +00:00
Alex Gleason
b271ecc801
Merge branch 'fix-nostrpull-duplicate-events' into 'main'
...
Handle event insertion errors with warning
Closes #195
See merge request soapbox-pub/ditto!473
2024-09-01 13:56:56 +00:00
Siddharth Singh
e7f5535bd2
handle event insertion errors with warning
2024-09-01 19:15:22 +05:30
P. Reis
8e53da7980
feat: add clean type errors task
2024-08-29 10:22:24 -03:00
Alex Gleason
0b6ca9dfea
Hide non-profile nostr URIs from text
2024-08-28 21:24:50 +02:00
Alex Gleason
ba77787767
Test and fix parsing of URLs
2024-08-28 21:19:07 +02:00
Alex Gleason
7a2a8bd4f5
Wrap URL in a try-catch
2024-08-28 21:15:43 +02:00
Alex Gleason
043e579c10
Merge branch 'fix-url' into 'main'
...
Fix parsing of regular URLs
See merge request soapbox-pub/ditto!471
2024-08-28 19:07:37 +00:00
Alex Gleason
a63b838195
Fix parsing of regular URLs
2024-08-28 21:02:52 +02:00
Alex Gleason
cde70e4c8f
Merge branch 'fix-apostrophe-issue' into 'main'
...
Fixed apostrophe issue
Closes #190
See merge request soapbox-pub/ditto!470
2024-08-28 17:49:26 +00:00
Alex Gleason
f9d1eed4dd
Remove unnecessary escape characters
2024-08-28 19:46:19 +02:00
Alex Gleason
c2ea4cbfd5
Fix parsing bech32 with apostrophe
2024-08-28 19:38:06 +02:00
danidfra
8d8211de09
Fixed apostrophe issue
2024-08-28 14:01:26 -03:00
Alex Gleason
a505372bd1
Merge branch 'resp-method' into 'main'
...
metrics: track response method
See merge request soapbox-pub/ditto!469
2024-08-28 12:44:05 +00:00
Alex Gleason
f730771d72
metrics: track response method
2024-08-28 14:40:45 +02:00
Alex Gleason
0d44932a04
Merge branch 'message-zap-split' into 'main'
...
feat: implement fifth parameter in zap tag
See merge request soapbox-pub/ditto!468
2024-08-27 22:04:05 +00:00
P. Reis
7d9f874cdf
feat: implement fifth parameter in zap tag
2024-08-27 17:52:51 -03:00
Alex Gleason
4b416e3c66
Merge branch 'update-nostrify' into 'main'
...
chore: update nostrify to 0.30.1
See merge request soapbox-pub/ditto!467
2024-08-27 18:32:09 +00:00
P. Reis
f96fca835b
chore: update nostrify to 0.30.1
...
other dependencies such as hono were automatically updated as well
2024-08-27 13:40:24 -03:00
Alex Gleason
e286ecc47d
Merge branch 'db-export-filters' into 'main'
...
Allow filtering items exported by `deno task db:export`
Closes #186
See merge request soapbox-pub/ditto!463
2024-08-26 22:14:23 +00:00
Alex Gleason
14a0f38e29
Merge branch 'update-deno-dom' into 'main'
...
Update deno dom
Closes #194
See merge request soapbox-pub/ditto!466
2024-08-26 18:34:38 +00:00
danidfra
980e904ea7
Update deno-dom
2024-08-26 15:31:03 -03:00
Siddharth Singh
1a38061b34
mediaDescriptionUpdateSchema --> mediaUpdateSchema
2024-08-25 19:48:04 +05:30
Siddharth Singh
7e711aa8a8
updateMediaDescriptionController --> updateMediaController
2024-08-25 19:43:28 +05:30
Siddharth Singh
125dfb54f3
Add tests for db:export filters
2024-08-25 19:41:35 +05:30
Siddharth Singh
f8fae52d5e
fix bug in alt text tagging
2024-08-25 19:13:31 +05:30
Alex Gleason
1e8aeee5a6
nginx: let ditto serve the favicon
2024-08-25 15:49:43 +03:00
Siddharth Singh
1f04a7fcdf
remove debug console.logs
2024-08-25 17:20:25 +05:30
Siddharth Singh
cf4dc8627b
remove unnecessary coalescing
2024-08-25 16:25:36 +05:30
Siddharth Singh
6ff90d63bb
implement PUT /api/v1/media/:id
...
Adds support for setting image descriptions for accessibility reasons
2024-08-25 16:23:25 +05:30
Siddharth Singh
fb199123be
first working version
2024-08-24 22:56:35 +05:30
Siddharth S Singh
9298bf6608
first commit (nonfunctional)
2024-08-23 16:25:34 +05:30
Alex Gleason
8adc87f1d9
Merge branch 'fe-routes' into 'main'
...
Add more known frontend routes
See merge request soapbox-pub/ditto!462
2024-08-20 01:17:30 +00:00
Alex Gleason
eb3b442dd4
Add more known frontend routes
2024-08-19 20:13:59 -05:00
Alex Gleason
8702d1ec07
Merge branch 'favicon' into 'main'
...
Fetch favicon from NIP-05 domain
See merge request soapbox-pub/ditto!461
2024-08-17 14:30:36 +00:00
Alex Gleason
8370b250a2
Add a signal to renderAccount
2024-08-17 09:25:48 -05:00
Alex Gleason
e539a29775
Fetch favicon from NIP-05 domain
2024-08-17 09:21:12 -05:00
Alex Gleason
79ac4ada81
Merge branch 'domain' into 'main'
...
Add `domain` to Account entity
See merge request soapbox-pub/ditto!460
2024-08-16 18:18:25 +00:00
Alex Gleason
de1c6a05dc
Add domain to Account entity
2024-08-16 13:15:06 -05:00
Alex Gleason
36933484ec
Merge branch 'favicon' into 'main'
...
Use favicon.ico to get instance favicon from NIP-05 of each user
See merge request soapbox-pub/ditto!459
2024-08-16 02:52:29 +00:00
Alex Gleason
a99728981c
Use favicon.ico to get instance favicon from NIP-05 of each user
2024-08-15 21:36:28 -05:00
Alex Gleason
b6f32c4d0f
Merge branch 'replaceable-update' into 'main'
...
Throw when creating a replaceable event that doesn't exist yet
See merge request soapbox-pub/ditto!458
2024-08-15 23:14:13 +00:00
Alex Gleason
4db8b2d4fb
Throw when creating a replaceable event that doesn't exist yet
2024-08-15 18:10:42 -05:00
Alex Gleason
bfa447d250
Upgrade gleasonator-policy in yarn.lock
2024-08-15 14:31:05 -05:00
Alex Gleason
b47cf1c0a5
Merge branch 'splits-flag' into 'main'
...
Put zap splits behind a feature flag, disabled by default
See merge request soapbox-pub/ditto!457
2024-08-15 03:08:28 +00:00
Alex Gleason
1feeaf7b1e
Put zap splits behind a feature flag, disabled by default
2024-08-14 22:05:17 -05:00
Alex Gleason
3dc6963f5d
Merge branch 'deno-1.45.5' into 'main'
...
Upgrade Deno to v1.45.5
See merge request soapbox-pub/ditto!456
2024-08-13 22:16:57 +00:00
Alex Gleason
bcfd349092
Upgrade Deno to v1.45.5
2024-08-13 17:03:22 -05:00
Alex Gleason
37e122862f
Merge branch 'npostgres' into 'main'
...
Switch to NPostgres
See merge request soapbox-pub/ditto!453
2024-08-13 14:20:18 +00:00
Alex Gleason
1a69df1cd7
Add timeout message to the relay
2024-08-12 23:04:12 -05:00
Alex Gleason
d3f4cd8d8c
Upgrade @nostrify/db to v0.31.2
2024-08-12 21:57:09 -05:00
Alex Gleason
27ba8b071a
pg migration: advise checking out main branch
2024-08-12 16:48:42 -05:00
Alex Gleason
c4064d0fa6
pg migration: 3 days -> several hours
2024-08-12 15:54:56 -05:00
Alex Gleason
e743e14bb1
Fix EventsDB test
2024-08-12 15:45:47 -05:00
Alex Gleason
f116950a83
Fix db:migrate script
2024-08-12 15:25:51 -05:00
Alex Gleason
8a23011392
pg migration: cascade
2024-08-12 15:17:42 -05:00
Alex Gleason
617659c7fd
Fix DittoDB+EventsDB relationship
2024-08-12 15:13:49 -05:00
Alex Gleason
5e4a94457f
Fix tests
2024-08-12 14:57:17 -05:00
Alex Gleason
3a82c98c21
trends: make trends work in Postgres (probably)
2024-08-12 14:48:32 -05:00
Alex Gleason
5c23cb02c2
Add NPostgres migration
2024-08-12 14:37:41 -05:00
Alex Gleason
8dc3b5d5a7
trends: maybe make postgres trends work?
2024-08-11 20:20:31 -05:00
Alex Gleason
8db5489350
Implements trends for SQLite
2024-08-11 19:50:20 -05:00
Alex Gleason
e6b18e7d95
trends: disable for now
2024-08-11 19:12:05 -05:00
Alex Gleason
c8bec9b4b7
Delete unused getUnattachedMedia function
2024-08-11 19:07:27 -05:00
Alex Gleason
552de01a17
Rework DittoDB to return an object
2024-08-11 19:02:27 -05:00
Alex Gleason
f830271ce2
Merge remote-tracking branch 'origin/main' into npostgres
2024-08-11 16:27:59 -05:00
Alex Gleason
e789e08c0f
Merge branch 'import-script' into 'main'
...
Improve performance of import script
See merge request soapbox-pub/ditto!454
2024-08-11 21:11:55 +00:00
Alex Gleason
9f9a07e618
Improve performance of import script
2024-08-11 16:08:15 -05:00
Alex Gleason
300c78ddb1
Upgrade @nostrify/db
2024-08-10 15:44:58 -05:00
Alex Gleason
916b68a3e4
Switch to NPostgres (steamroll SQLite for now)
2024-08-10 13:30:24 -05:00
Alex Gleason
66cfba5535
Remove leading @ from params.acct
2024-08-10 09:58:25 -05:00
Alex Gleason
6657a48a07
Merge branch 'at-match' into 'main'
...
Fix matching @ routes in app
See merge request soapbox-pub/ditto!452
2024-08-10 02:10:39 +00:00
Alex Gleason
443c8a43f7
Fix matching @ routes in app
2024-08-09 21:07:41 -05:00
Alex Gleason
4bf3096454
errorHandler: don't log timeouts
2024-08-09 13:31:36 -05:00
Alex Gleason
2cbbf2fbe7
Merge branch 'api-err' into 'main'
...
publishEvent: throw errors
See merge request soapbox-pub/ditto!451
2024-08-09 18:29:35 +00:00
Alex Gleason
abc1a6eb49
EventsDB.event: throw error on insertion
2024-08-09 12:47:59 -05:00
Alex Gleason
9b68d2d08a
publishEvent: throw errors
2024-08-09 12:44:25 -05:00
Alex Gleason
c7a59b50d0
Fix account search
2024-08-08 18:41:29 -05:00
Alex Gleason
800e20a143
Convert og:description to plaintext
2024-08-07 21:36:02 -05:00
Alex Gleason
a46c352d3d
Merge branch 'opengraph-metadata' into 'main'
...
OpenGraph metadata support
Closes #179
See merge request soapbox-pub/ditto!444
2024-08-08 02:22:01 +00:00
Alex Gleason
313c37564c
Add MastodonAttachment type
2024-08-07 21:19:04 -05:00
Alex Gleason
efc121a4ae
Fallback to favicon.ico in link previews
2024-08-07 21:10:31 -05:00
Alex Gleason
15c46ec3f0
Rework nginx file again for link previews
2024-08-07 21:08:03 -05:00
Alex Gleason
2f2fda2ac3
Render OG data on every page
2024-08-07 21:06:51 -05:00
Alex Gleason
5f1b87c3b6
Pretend to be WhatsApp when fetching links
2024-08-07 21:00:07 -05:00
Alex Gleason
ba241f0431
Rework opengraph
2024-08-07 20:47:53 -05:00
Alex Gleason
72970bf480
Code style changes
2024-08-07 19:01:50 -05:00
Alex Gleason
020736fd47
Escape @ in SSR routes
2024-08-07 18:19:39 -05:00
Alex Gleason
349f59cc70
Merge remote-tracking branch 'origin/main' into opengraph-metadata
2024-08-07 18:19:13 -05:00
Alex Gleason
e264d6116c
Merge branch 'search-fixes' into 'main'
...
search: parse bech32 ids from pasted URLs, improve Mastodon API compat
See merge request soapbox-pub/ditto!450
2024-08-07 23:11:20 +00:00
Alex Gleason
2e38a7b9ec
mentionsCompat: wrap each mention in an h-card span
2024-08-07 17:54:45 -05:00
Alex Gleason
ab17be219c
Fix parseNoteContent test
2024-08-07 17:37:44 -05:00
Alex Gleason
2f5b4557b7
compatMentions: remove post author and explicit text mentions
2024-08-07 17:34:36 -05:00
Alex Gleason
529e61be6d
Return properly formatted mentions in Status API
2024-08-07 17:27:22 -05:00
Alex Gleason
a24c119c7b
accountSearchController: actually use the looked up event, whoops
2024-08-07 16:56:15 -05:00
Alex Gleason
fd90c199f5
search: fix lookupPubkey for account search endpoint
2024-08-07 16:44:32 -05:00
Alex Gleason
8f5ec50a25
search: fix nip05 lookups
2024-08-07 16:41:46 -05:00
Alex Gleason
bc603188fa
extractBech32 -> extractIdentifier, support extracting nip05 names
2024-08-07 16:22:10 -05:00
Alex Gleason
d3780037df
search: escape @ signs in matchers
2024-08-07 16:05:04 -05:00
Alex Gleason
ff900341d5
Match every possible goddamn URL format in search
2024-08-07 15:53:59 -05:00
Alex Gleason
dbd40357af
Mimic Mastodon's uri/url fields exactly on Accounts and Statuses
2024-08-07 15:23:33 -05:00
Alex Gleason
8f704e4ea2
Fix account URL lookup with @ in the URL
2024-08-07 14:52:13 -05:00
Alex Gleason
385127761d
Strictly follow Mastodon API's way of only returning one result of a lookup succeeds
2024-08-07 14:41:16 -05:00
Alex Gleason
717fd6bdc9
Merge branch 'zap-tag-endpoint-by-id' into 'main'
...
Get zap split by post/status id, based in the zap tag
See merge request soapbox-pub/ditto!448
2024-08-07 17:36:09 +00:00
Alex Gleason
cdee2604a1
Apply same search improvements to accountSearchController
2024-08-07 12:31:22 -05:00
P. Reis
10052230e5
refactor: rename getZapSplitsOfStatusController to statusZapSplitsController
2024-08-07 14:24:32 -03:00
Alex Gleason
1efd4fad12
search: parse bech32 ids from pasted URLs
2024-08-07 12:11:13 -05:00
Alex Gleason
b3eb65f5ce
Merge branch 'app-redirect' into 'main'
...
createAppController: parse formdata body
See merge request soapbox-pub/ditto!449
2024-08-07 00:57:51 +00:00
Alex Gleason
9c645cf616
createAppController: parse formdata body
2024-08-06 19:47:26 -05:00
Alex Gleason
d572a43b5a
Merge branch 'pagination-compat' into 'main'
...
Fix Mastodon legacy pagination
See merge request soapbox-pub/ditto!447
2024-08-07 00:24:17 +00:00
Alex Gleason
5d6ab9f63b
Separate listPagination
2024-08-06 19:04:27 -05:00
P. Reis
32cecb5e6b
feat: create zap split endpoint based in post/status id
2024-08-06 20:55:40 -03:00
Alex Gleason
d285b7dced
Fix Mastodon legacy pagination
2024-08-06 18:20:26 -05:00
Alex Gleason
09ea0856a6
renderRelationship: delete accidental comment left in
2024-08-06 15:58:04 -05:00
Alex Gleason
6ae48e60e5
Merge branch 'relationships-perf' into 'main'
...
Optimize relationships database calls
See merge request soapbox-pub/ditto!446
2024-08-06 20:46:09 +00:00
Alex Gleason
41bcd77853
Optimize relationships database calls
2024-08-06 15:34:10 -05:00
Alex Gleason
75935d0b53
Merge branch 'nostrify-30' into 'main'
...
Upgrade to Nostrify v0.30.0
See merge request soapbox-pub/ditto!445
2024-08-05 20:48:59 +00:00
Alex Gleason
db6417bad9
Upgrade to Nostrify v0.30.0
2024-08-05 15:45:02 -05:00
Siddharth Singh
612c845f95
get rid of r() and RawHtml from html.ts
2024-08-06 01:51:43 +05:30
Siddharth Singh
16f4048604
way better logging
2024-08-06 01:25:39 +05:30
Siddharth Singh
166106b12b
even better kind 0 handling
2024-08-06 00:56:27 +05:30
Alex Gleason
b2136b35e8
Merge branch 'move-get-zap-split-to-new-endpoint' into 'main'
...
Create getZapSplitsController - Remove zap split from instance V1 endpoint
Closes #182
See merge request soapbox-pub/ditto!442
2024-08-05 19:23:56 +00:00
P. Reis
bce404728b
refactor: rename zap_split to dittoZapSplit
2024-08-05 16:20:38 -03:00
Siddharth Singh
2283f64204
regex guard around opengraph routes
2024-08-06 00:45:28 +05:30
Siddharth Singh
f48d8e0a66
use Object.assign to fill template opts
2024-08-06 00:37:14 +05:30
Siddharth Singh
af70065d84
yet another typo fix
2024-08-06 00:32:13 +05:30
Siddharth Singh
4f8ebb95f3
hex regex typo fix
2024-08-06 00:26:04 +05:30
Siddharth Singh
6691908fc4
typo
2024-08-06 00:20:58 +05:30
Siddharth Singh
aa0727a96d
acct can be a bare pubkey
2024-08-06 00:20:05 +05:30
Siddharth Singh
f6bd7fc3a5
fail gracefully if getHandle fails to fetch profile
2024-08-05 23:23:13 +05:30
P. Reis
0a3ed4e160
refactor(zap split): rename amount to weight
2024-08-05 14:41:16 -03:00
Siddharth Singh
c109d06a6e
better getHandle
2024-08-05 23:00:08 +05:30
P. Reis
25bbeceb8d
refactor: rename zap_splits_mastodon to zapSplitEntity
2024-08-05 14:29:30 -03:00
Siddharth Singh
9a96582bfc
catch errors while building opengraph metadata to allow _some_ metadata to make it out still
2024-08-05 22:36:48 +05:30
Siddharth Singh
18e0c990e4
add ditto favicon to default metadata
2024-08-05 22:35:55 +05:30
Siddharth Singh
00fe609ef1
fix naked pubkey test regex
2024-08-05 21:36:49 +05:30
Siddharth Singh
2f9dd7e9a2
more logging
2024-08-05 21:34:20 +05:30
Siddharth Singh
a3012d341b
log stuff
2024-08-05 21:32:44 +05:30
Siddharth Singh
9175596d5f
use nip27 replacer instead of janky regex
2024-08-05 20:24:03 +05:30
Siddharth Singh
e4f24c3b26
format
2024-08-05 20:18:49 +05:30
Siddharth Singh
7c56b9dad8
use stickynotes, move storages.db to inside buildTemplateOpts
2024-08-05 20:18:16 +05:30
Siddharth Singh
85b54e81be
ignore OG metadata errors
2024-08-05 20:14:43 +05:30
Siddharth Singh
2ad81d3fbf
sort imports
2024-08-05 20:07:08 +05:30
Siddharth Singh
33da9a41b2
rewrite metadata generation
2024-08-05 20:04:26 +05:30
Siddharth Singh
5785f07052
tpl --> metadataView
2024-08-05 20:02:03 +05:30
Siddharth Singh
c7e5aed679
move parseAndVerifyNip05 to utils/nip05
2024-08-05 18:12:53 +05:30
Siddharth Singh
29d7495c39
add site property to OpenGraphTemplateOpts
2024-08-05 15:43:56 +05:30
Siddharth Singh
7e2217ccd8
use entities escape instead of shitty custom one
2024-08-05 15:42:32 +05:30
Siddharth Singh
0706f53b9f
sort imports by path
2024-08-05 15:18:17 +05:30
Siddharth Singh
c863655b4d
sort imports by path
2024-08-05 15:15:48 +05:30
Siddharth Singh
c0a6d48d55
rename OG_META_PLACEHOLDER --> META_PLACEHOLDER
2024-08-05 15:14:51 +05:30
Siddharth Singh
2cafc2014f
remove cf from lockfile
2024-08-05 15:13:09 +05:30
Alex Gleason
4c83d6d1b2
Do frontendController like I want to
2024-08-04 13:26:05 -05:00
Siddharth Singh
95ef308d0e
fix typo in nip05 cleaner regex
2024-08-04 12:25:30 +05:30
Siddharth Singh
8b8a801da8
handle underscores in nip05 correctly
2024-08-04 12:21:31 +05:30
Siddharth Singh
b95e31cd5d
rework kind 0 handling
2024-08-04 12:07:24 +05:30
Siddharth Singh
6aa49c12e1
steal html util from campfire, remove external dependency on cf
2024-08-04 11:10:33 +05:30
Siddharth Singh
77d73c47ee
move a bunch of utils to their own file
2024-08-04 11:07:29 +05:30
Siddharth Singh
435ca60b0d
update todo
2024-08-04 05:52:51 +05:30
Siddharth Singh
7aaa1bc030
generate metadata for bech32 encoded entities
2024-08-04 05:52:24 +05:30
Siddharth Singh
80f8932513
send profile pictures where possible
2024-08-04 04:54:50 +05:30
Siddharth Singh
8c9facdad7
remove unnecessary logs and use nip05s if avl
2024-08-04 04:49:24 +05:30
Siddharth Singh
baa6e318f3
remove premature optimization in serveStaticWithOG
2024-08-04 04:43:47 +05:30
Siddharth Singh
5ee0c1e852
opengraphMiddleware.ts --> serveStaticWithOG.ts
2024-08-04 04:36:36 +05:30
Siddharth Singh
b8eb549190
opengraphFrontendController --> serveStaticWithOG
2024-08-04 04:35:56 +05:30
Siddharth Singh
4e522bd90f
always use summary type for twitter
2024-08-04 03:35:04 +05:30
Siddharth Singh
2382503785
flip the orders?
2024-08-04 03:20:57 +05:30
Siddharth Singh
a530313d15
update todo
2024-08-04 03:15:04 +05:30
Siddharth Singh
7889ee5db4
first version of opengraph functionality
2024-08-04 03:06:53 +05:30
Alex Gleason
950adb25c6
Fix relay connections metrics
2024-08-03 08:19:21 -05:00
Alex Gleason
5ac1abdf69
Merge branch 'fix-documentation' into 'main'
...
docs/fix: rename db:import to nostr:pull
See merge request soapbox-pub/ditto!443
2024-08-03 00:35:14 +00:00
P. Reis
84c56282ac
docs/fix: rename db:import to nostr:pull
2024-08-02 21:19:52 -03:00
Alex Gleason
3e6f4bb256
Merge branch 'db-export' into 'main'
...
Add db:export command
See merge request soapbox-pub/ditto!441
2024-08-02 22:00:15 +00:00
Alex Gleason
ba3f816955
Add db:import task
2024-08-02 16:54:35 -05:00
P. Reis
6277b8ab0f
refactor: remove zap split from instance V1 endpoint
2024-08-02 18:47:59 -03:00
P. Reis
baa00e45a6
feat: create getZapSplitsController
2024-08-02 18:47:21 -03:00
Alex Gleason
3bec54ee76
Let SQLite transfer asyncIterables
2024-08-02 16:45:41 -05:00
Alex Gleason
9543049419
Add db:export command
2024-08-02 16:31:39 -05:00
Alex Gleason
44a61c4a52
Rework migrations logging
2024-08-02 16:31:06 -05:00
Alex Gleason
975294b8a4
Merge branch 'firehose-concurrency' into 'main'
...
Limit firehose concurrency
See merge request soapbox-pub/ditto!440
2024-08-01 17:07:08 +00:00
Alex Gleason
b05bf37cb3
Limit firehose concurrency
2024-08-01 11:51:38 -05:00
Alex Gleason
b47c53038f
Merge branch 'in-any' into 'main'
...
Convert IN operators to = ANY() operators on Postgres
See merge request soapbox-pub/ditto!439
2024-07-31 20:08:09 +00:00
Alex Gleason
49bf38d27b
Fix kysely dependency version mismatch
2024-07-31 15:00:05 -05:00
Alex Gleason
d73370cc68
Convert IN operators to = ANY() operators on Postgres
2024-07-31 14:41:04 -05:00
Alex Gleason
7860dd2a0c
Merge branch 'policy-metrics' into 'main'
...
Add Policy metrics
See merge request soapbox-pub/ditto!438
2024-07-30 20:56:09 +00:00
Alex Gleason
8960bdcca9
Add Policy metrics
2024-07-30 15:47:55 -05:00
Alex Gleason
9b521e9f36
metricsMiddleware: add comments
2024-07-30 14:37:28 -05:00
Alex Gleason
24d6ae0ce9
Update gleasonator policy in deno.lock
2024-07-30 14:37:15 -05:00
Alex Gleason
caaababbab
Upgrade Nostrify to v0.28.0
2024-07-30 00:01:21 -05:00
Alex Gleason
67f65b4826
Merge branch 'context' into 'main'
...
Improve performance of /context endpoint
See merge request soapbox-pub/ditto!437
2024-07-30 04:46:31 +00:00
Alex Gleason
a8e81e304e
context: reverse descendants
2024-07-29 23:43:04 -05:00
Alex Gleason
edc4607c8d
Improve performance of /context endpoint
2024-07-29 23:40:08 -05:00
Alex Gleason
ce18cb928a
KyselyLogger: also log errors
2024-07-29 21:19:44 -05:00
Alex Gleason
c54d801dd0
Merge branch 'tag-queries' into 'main'
...
Vastly improve tag query performance
Closes #169
See merge request soapbox-pub/ditto!436
2024-07-29 21:50:40 +00:00
Alex Gleason
18e446bd05
Delete zap split tests
2024-07-29 16:46:27 -05:00
Alex Gleason
a0952bc4c1
zap-split.test: use using
2024-07-29 16:42:18 -05:00
Alex Gleason
37f229408c
Seed zap splits when Storages.db is first accessed
2024-07-29 15:59:29 -05:00
Alex Gleason
31f5254fb3
Clear timeouts in tag queries migration
2024-07-29 15:37:45 -05:00
Alex Gleason
48a4e30e38
trends: read directly from the tags table instead of doing an inner join on events
2024-07-29 15:33:16 -05:00
Alex Gleason
ece18c9bd8
Add tags table migration
2024-07-29 15:32:36 -05:00
Alex Gleason
df9ae26a3a
Upgrade Nostrify to v0.27.0
2024-07-29 14:18:46 -05:00
Alex Gleason
51bdd977e1
Merge remote-tracking branch 'origin/main' into tag-queries
2024-07-29 14:14:35 -05:00
Alex Gleason
ac15aa431b
Merge branch 'postgres-support-testing' into 'main'
...
Support tests with Postgres
Closes #171
See merge request soapbox-pub/ditto!435
2024-07-29 01:15:17 +00:00
P. Reis
a271340ffc
test: use postgres in hydrate.test.ts
2024-07-26 19:01:18 -03:00
P. Reis
9c02a2d555
refactor: remove nip05 enhancement and tests
2024-07-26 18:49:31 -03:00
P. Reis
6551f0c677
Merge branch 'main' into postgres-support-testing
...
Update local branch to latest. This branch has the NIP-05 but it will be overriden
2024-07-26 18:32:30 -03:00
Alex Gleason
58df902a7b
Merge branch 'fix-startup' into 'main'
...
Fix: import startup.ts file in app.ts
See merge request soapbox-pub/ditto!434
2024-07-25 19:41:47 +00:00
P. Reis
dc94d21374
fix(app.ts): import startup.ts file
2024-07-25 16:32:49 -03:00
Alex Gleason
24b950ebd2
Merge branch 'add-zap-tag' into 'main'
...
Add zap tag to kind 1 event
Closes #133
See merge request soapbox-pub/ditto!432
2024-07-25 18:12:57 +00:00
P. Reis
e458608e38
refactor: rename createZapSplitsIfNotExists to seedZapSplits
2024-07-25 15:10:54 -03:00
P. Reis
882f8009dc
refactor: rename isNumberFrom1To100 to percentageSchema
2024-07-25 15:06:50 -03:00
P. Reis
f3d521356d
refactor: get rid of isObjectEmpty function
2024-07-25 14:52:52 -03:00
P. Reis
541b5b1c39
refactor: imports in alphabetical order
2024-07-25 14:52:03 -03:00
P. Reis
f94ae7606c
refactor: change zapSplitSchema to z.record())
2024-07-25 11:11:44 -03:00
Alex Gleason
75e9837c09
Upgrade Nostrify to v0.27.0-rc.4
2024-07-24 13:59:21 -05:00
P. Reis
85806f7ea8
refactor: use object fields instead of tuple in zapSplitSchema
2024-07-24 11:14:42 -03:00
P. Reis
961da0f52c
refactor: change error message in updateZapSplitsController & deleteZapSplitsController
2024-07-24 10:56:12 -03:00
P. Reis
ddd1972c83
refactor(app.ts): move cron function and startFirehose function to startup.ts
2024-07-24 10:55:30 -03:00
P. Reis
23bb24929c
refactor: remove zap split creation from instanceV1Controller endpoint
2024-07-24 10:54:56 -03:00
P. Reis
1698c1b19b
feat: create startup file
2024-07-24 10:54:20 -03:00
P. Reis
86874e3a08
feat: create createZapSplitsIfNotExists() function
2024-07-24 10:53:32 -03:00
Alex Gleason
2b8009d840
trends: catch initial queries
2024-07-23 23:07:34 -05:00
Alex Gleason
7949c95f77
try-catch trending tags cron
2024-07-23 22:32:16 -05:00
Alex Gleason
5ebde99320
trends: Deno.cron try/catch
2024-07-23 22:19:53 -05:00
Alex Gleason
64eeee5ff7
Upgrade Nostrify to v0.27.0-rc.3
2024-07-23 22:09:51 -05:00
P. Reis
0e43d1e8a7
refactor: add zap tag with new data structure
2024-07-23 22:40:38 -03:00
P. Reis
c49460e37d
refactor(instance.ts): use new zap_split data structure in ditto hard coded pubkey
2024-07-23 20:41:02 -03:00
P. Reis
75ad25ccac
test(zap-split): update to be in accord with new data structure
2024-07-23 20:39:51 -03:00
P. Reis
2ebaee8807
refactor: change DittoZapSplits data structure to use object fields instead of array
2024-07-23 20:39:23 -03:00
P. Reis
7cdfb67b99
refactor: rename officialDittoAccountPubkey to dittoPubkey & officialDittoAccountMsg to dittoMsg
2024-07-23 20:25:02 -03:00
P. Reis
a0c952b9b9
refactor: do not use isObjectEmpty function in if condition, zap tag
2024-07-23 20:15:44 -03:00
P. Reis
de32930c44
refactor: use exclamation mark (bang) instead of 'as string' cast
2024-07-23 18:26:06 -03:00
P. Reis
80e14c65c0
refactor: rename zap_split.ts to zap-split.ts, rename tests as well
2024-07-23 18:14:22 -03:00
Alex Gleason
ff35357121
Upgrade Nostrify to v0.27.0-rc.2
2024-07-23 15:13:02 -05:00
Alex Gleason
e400641757
Improve performance of tag queries
2024-07-23 10:29:45 -05:00
P. Reis
5a5e8b7c5d
feat(createStatusController): add 'zap' tag to event
2024-07-21 20:11:26 -03:00
P. Reis
449a3497ba
feat: create deleteZapSplitsController
2024-07-21 19:40:55 -03:00
P. Reis
2e66af26db
feat: create updateZapSplitsController
2024-07-21 19:26:05 -03:00
P. Reis
2fe9b9f98d
feat: get zap splits and return it in api/v1/instance endpoint
2024-07-21 19:22:53 -03:00
Alex Gleason
98dfd8f4b8
Merge branch 'update-postgres-js' into 'main'
...
update pinned version of postgres.js
See merge request soapbox-pub/ditto!430
2024-07-20 22:04:27 +00:00
Siddharth Singh
2acfcb3951
update lock file
2024-07-21 03:23:15 +05:30
Siddharth Singh
b3dba0f793
update pinned version of postgres.js
2024-07-21 03:19:05 +05:30
Alex Gleason
4304715c1e
pool: skip event verification
2024-07-20 13:38:56 -05:00
Alex Gleason
9cb85e42d2
Merge branch 'use-npool-nostrify' into 'main'
...
Replace PoolStore with NPool & add tests for outbox.ts file and RelayError.ts file
Closes #148 , #180 , and #181
See merge request soapbox-pub/ditto!424
2024-07-20 18:33:32 +00:00
Alex Gleason
8768bb1bad
Merge remote-tracking branch 'origin/main' into use-npool-nostrify
2024-07-20 13:31:05 -05:00
P. Reis
1f9896bdbf
test: getZapSplits function return empty object
2024-07-19 19:30:31 -03:00
P. Reis
09eb444c9b
test: update so getZapSplits function returns undefined
2024-07-19 19:19:35 -03:00
P. Reis
beee0e76e7
refactor: allow to return undefined in getZapSplits function
2024-07-19 19:19:04 -03:00
P. Reis
3bc3e7675d
test: getZapSplits function
2024-07-19 17:36:12 -03:00
P. Reis
76a591ab6d
feat: create getZapSplits function
2024-07-19 17:20:31 -03:00
P. Reis
0c9e3e2b47
test(utils.ts): isObjectEmpty function
2024-07-19 16:27:10 -03:00
P. Reis
c17db58448
feat(utils.ts): create isObjectEmpty function
2024-07-19 16:26:50 -03:00
P. Reis
cc6441d239
refactor(utils.ts): remove unused imports
2024-07-19 15:22:35 -03:00
P. Reis
c2225da8dd
test(utls.ts): add more cases, isNumberFrom1To100 function
2024-07-19 13:34:45 -03:00
P. Reis
11809637ee
test(utils.ts): isNumberFrom1To100 function
2024-07-19 13:21:17 -03:00
P. Reis
dcec2ecdd0
feat: create isNumberFrom1To100 function
2024-07-19 13:19:04 -03:00
Alex Gleason
8c19c5ba09
Merge branch 'stable-sort' into 'main'
...
Sort events by id after created_at
See merge request soapbox-pub/ditto!429
2024-07-19 03:49:06 +00:00
Alex Gleason
8ec5feae13
Sort events by id after created_at
2024-07-18 22:48:11 -05:00
Alex Gleason
13f0d3f49e
Upgrade Nostrify to v0.26.2
2024-07-18 22:01:16 -05:00
Alex Gleason
7793db3e2c
Upgrade Nostrify to v0.26.1
2024-07-17 23:13:04 -05:00
Alex Gleason
b18d326f5d
Merge branch 'revert-bf9b816e' into 'main'
...
Revert "Merge branch 'tag-perf' into 'main'"
See merge request soapbox-pub/ditto!426
2024-07-18 04:11:50 +00:00
Alex Gleason
2d239fcaec
Revert "Merge branch 'tag-perf' into 'main'"
...
This reverts merge request !425
2024-07-18 04:11:04 +00:00
Alex Gleason
bf9b816e0b
Merge branch 'tag-perf' into 'main'
...
EventsDB: query tags by converting to ids filter
See merge request soapbox-pub/ditto!425
2024-07-18 03:33:03 +00:00
Alex Gleason
ff8d7ef9d4
EventsDB: normalizeFilters before expanding tag queries
2024-07-17 20:11:31 -05:00
Alex Gleason
0f5c28deeb
EventsDB: query tags by converting to ids filter
2024-07-17 19:58:12 -05:00
P. Reis
31e5b89750
refactor: delete pool-store.ts file
2024-07-17 11:42:27 -03:00
P. Reis
bccf33f80a
feat(storages): remove PoolStore, use NPool
2024-07-17 11:42:27 -03:00
P. Reis
e01e0049e3
fix: purify event before publishing to other relays
2024-07-17 11:40:08 -03:00
P. Reis
f4f0c5fb86
fix(storages): publish to write relays only as well
2024-07-17 11:00:49 -03:00
P. Reis
f5ee5ea6a3
test(RelayError): code coverage 100.00%
2024-07-17 10:53:31 -03:00
P. Reis
85a6089e36
test(outbox): coverage 100%
2024-07-17 10:39:50 -03:00
P. Reis
4d4273832a
fixture: add kind 10002
2024-07-17 10:39:50 -03:00
P. Reis
cc51917d61
fix(outbox): remove comment, use author pubkey
2024-07-17 10:39:50 -03:00
Alex Gleason
eebc3e5c61
Merge branch 'update-dependencies' into 'main'
...
chore: update dependencies
See merge request soapbox-pub/ditto!423
2024-07-16 19:29:23 +00:00
P. Reis
aec2cd3b9f
chore: update dependencies
2024-07-16 16:26:22 -03:00
P. Reis
842b527273
test: update to use kysely-postgres-js
2024-07-16 14:47:14 -03:00
P. Reis
8afc3bca3d
refactor: order of imports
2024-07-16 14:06:32 -03:00
P. Reis
cf4ee051db
Merge branch 'main' into search-nip05-enhance-and-postgres-support-testing
2024-07-16 13:58:47 -03:00
Alex Gleason
d32cccd70e
Merge branch 'coverage-support' into 'main'
...
ci: add code coverage
See merge request soapbox-pub/ditto!421
2024-07-16 16:19:08 +00:00
Alex Gleason
00f09e1846
Merge branch 'use-postgres-js' into 'main'
...
replace kysely_deno_postgres with kysely-postgres-js
See merge request soapbox-pub/ditto!404
2024-07-16 14:27:46 +00:00
Alex Gleason
c2f578a2bb
DittoPostgres: handle pool not being opened yet
2024-07-16 09:26:49 -05:00
Alex Gleason
e208d7ef56
Merge remote-tracking branch 'origin/main' into use-postgres-js
2024-07-15 21:35:29 -05:00
Siddharth Singh
3aa8266bbe
use idle count to get avl connections
2024-07-16 07:44:55 +05:30
Siddharth Singh
53343ba349
messing with conn stats
2024-07-16 07:44:39 +05:30
P. Reis
b45eab64b5
ci: add code coverage
2024-07-15 19:05:28 -03:00
Alex Gleason
6fe034d55a
Bump version to v1.1.0
2024-07-15 08:11:25 -05:00
Siddharth Singh
404306f203
change to connection-stats branch
2024-07-15 14:23:23 +05:30
Alex Gleason
c2026a340a
Update CHANGELOG
2024-07-14 15:59:02 -05:00
Alex Gleason
4fa5517c58
Merge branch 'tweak-timeouts' into 'main'
...
Increase default database timeouts
See merge request soapbox-pub/ditto!420
2024-07-14 15:11:43 +00:00
Alex Gleason
a49e56f2a0
Increase default database timeouts
2024-07-14 10:10:26 -05:00
Alex Gleason
aac6505bf5
Merge branch 'deno-v1.45.2' into 'main'
...
Upgrade Deno to v1.45.2
See merge request soapbox-pub/ditto!419
2024-07-13 20:51:30 +00:00
Alex Gleason
46c3e52b98
Upgrade Deno to v1.45.2
2024-07-13 15:49:19 -05:00
Alex Gleason
39fdbc1acb
Delete scavenger.test.ts
2024-07-12 14:01:21 -05:00
Alex Gleason
d6b49b169d
Merge branch 'timeouts-conf' into 'main'
...
Make database timeouts configurable
See merge request soapbox-pub/ditto!417
2024-07-12 18:53:07 +00:00
Alex Gleason
96fe8920cd
Make database timeouts configurable
2024-07-12 13:49:44 -05:00
Alex Gleason
c2b13b1a63
Add a ts-ignore instead of as any
2024-07-11 17:22:12 -05:00
Alex Gleason
cd961dad86
delay -> sleep, style tweaks
2024-07-11 17:19:47 -05:00
Alex Gleason
9584638d5c
Merge remote-tracking branch 'origin/main' into use-postgres-js
2024-07-11 17:16:11 -05:00
Alex Gleason
d0d385682d
Merge branch 'ws-limit' into 'main'
...
Rate-limit websocket endpoints
See merge request soapbox-pub/ditto!415
2024-07-11 22:11:56 +00:00
Alex Gleason
5c6479b3fe
Rate-limit messages to the relay
2024-07-11 17:10:05 -05:00
Alex Gleason
92061c267e
Merge remote-tracking branch 'origin/main' into ws-limit
2024-07-11 17:02:00 -05:00
Alex Gleason
c4b35d11c8
Merge branch 'deno-v1.45.0' into 'main'
...
Upgrade Deno to v1.45.0
See merge request soapbox-pub/ditto!414
2024-07-11 21:56:48 +00:00
Alex Gleason
6245200e21
Upgrade Deno to v1.45.0
2024-07-11 16:55:02 -05:00
Alex Gleason
b3067e64ee
Merge branch 'e-tags' into 'main'
...
createStatusController: add relay hints
See merge request soapbox-pub/ditto!413
2024-07-06 23:25:41 +00:00
Alex Gleason
fa53dd7f8d
createStatusController: add relay hints
...
Fixes https://github.com/nostrability/nostrability/issues/52
2024-07-07 00:23:00 +01:00
Alex Gleason
ed067e541e
Merge branch 'improve-errors' into 'main'
...
Improve signer timeout errors
See merge request soapbox-pub/ditto!412
2024-07-06 22:03:54 +00:00
Alex Gleason
842adfd72b
Improve signer timeout errors
2024-07-06 23:01:00 +01:00
Alex Gleason
155ca77074
Merge branch 'fix-not-being-able-to-post' into 'main'
...
Fix not being able to post
Closes #175
See merge request soapbox-pub/ditto!411
2024-07-06 19:52:33 +00:00
Alex Gleason
2167106577
Fix not being able to post
2024-07-06 20:50:39 +01:00
Siddharth Singh
36b9aae1ab
switch to postgres.js available-connections branch temporarily
2024-07-06 20:07:02 +05:30
P. Reis
71bdfea317
refactor: get database dialect from Conf.db.dialect
2024-07-06 11:11:41 -03:00
Siddharth Singh
102398967e
fix type stuff
2024-07-06 18:18:38 +05:30
Siddharth Singh
3495092eff
add poolsize and availableconnections metrics back
2024-07-06 18:15:21 +05:30
Siddharth Singh
a804608afb
Merge branch 'main' into 'use-postgres-js'
...
# Conflicts:
# deno.json
# src/db/adapters/DittoPostgres.ts
2024-07-06 12:03:21 +00:00
P. Reis
5412d2a07b
fix(EventsDB): also add a split only by '@' at symbol
2024-07-05 20:43:13 -03:00
P. Reis
92231dc452
test: query by NIP-05
2024-07-05 20:42:11 -03:00
P. Reis
01966496c1
feat: print which dialect is being used when calling createTestDB
2024-07-05 18:49:37 -03:00
P. Reis
13d346afbd
refactor: remove console.log
2024-07-05 18:43:14 -03:00
P. Reis
1b3082cd22
build: set ALLOW_TO_USE_DATABASE_URL in postgres ci
2024-07-05 18:34:28 -03:00
P. Reis
fed0c70f69
feat: only run tests with Postgres if ALLOW_TO_USE_DATABASE_URL is set to true
2024-07-05 18:33:29 -03:00
P. Reis
7e965f4ade
refactor(test.ts): explain why set DATABASE_URL to sqlite://:memory:
2024-07-05 17:59:12 -03:00
P. Reis
1af229da45
build(gitlab-ci): use deno task test in postgres ci
2024-07-05 17:52:13 -03:00
P. Reis
34bbf6e39a
test(pipeline): refactor to use createTestDB instead of getTestDB
2024-07-05 17:48:34 -03:00
P. Reis
f380120cd3
test: refactor to use createTestDB instead of getTestDB
2024-07-05 17:48:06 -03:00
P. Reis
d18796956b
test(hydrate): refactor to only use sqlite
2024-07-05 17:43:47 -03:00
P. Reis
85fd7909e6
feat: add optional kysely in HydrateOpts interface
2024-07-05 17:42:19 -03:00
P. Reis
8e1826020c
test(EventsDB): remove createDB function
2024-07-05 17:35:25 -03:00
P. Reis
2154cf011b
test: create createTestDB function, supports both Sqlite and Postgres
2024-07-05 17:26:27 -03:00
P. Reis
12b2032d87
refactor(EventsDB.test): add one blank line between functions
2024-07-04 22:50:12 -03:00
P. Reis
a9f79176a2
test: support sqlite and postgres
2024-07-04 22:43:56 -03:00
Alex Gleason
a9afe03a37
Merge branch 'metrics-resp' into 'main'
...
HTTP Response metrics
See merge request soapbox-pub/ditto!410
2024-07-04 23:11:12 +00:00
Alex Gleason
96a8ccb2e6
HTTP Response metrics
2024-07-05 00:07:59 +01:00
Alex Gleason
d4713cae01
Move errorHandler to a separate file
2024-07-04 23:53:20 +01:00
Alex Gleason
8923a5ee55
Merge branch 'eventsdb-no-ephemeral' into 'main'
...
EventsDB: remove queries for ephemeral kinds
See merge request soapbox-pub/ditto!409
2024-07-04 22:40:17 +00:00
Alex Gleason
193dd1a011
EventsDB: remove queries for ephemeral kinds
2024-07-04 23:38:16 +01:00
P. Reis
cbb48867c1
test: attempt to use Postgres
2024-07-04 18:13:31 -03:00
P. Reis
d8247dc76a
build: remove DATABASE_URL in test script
2024-07-04 18:08:03 -03:00
P. Reis
78d41bbd6d
feat(EventsDB): add nip05 split in buildUserSearchContent()
2024-07-03 20:41:48 -03:00
Alex Gleason
5addf58a10
Merge branch 'handle-timeout-error' into 'main'
...
Handle timeout error in Hono app.onError() function & send custom error messages in /relay
See merge request soapbox-pub/ditto!407
2024-07-02 21:45:12 +00:00
P. Reis
ba29035413
refactor: put conditional into just one line
2024-07-02 18:43:28 -03:00
P. Reis
d3c3ecfd35
test(EventsDB): refactor to use RelayError instead of Error
2024-07-02 18:40:21 -03:00
P. Reis
e169749b82
refactor(EventsDB): throw RelayError instead of Error
2024-07-02 18:39:55 -03:00
P. Reis
2d017e8102
refactor(relay): remove invalid filter condition
2024-07-02 18:39:22 -03:00
P. Reis
a868512188
refactor: error messages in app.onError()
2024-07-02 18:38:16 -03:00
P. Reis
1731e7dac9
Merge branch 'main' into handle-timeout-error
...
(((updating local branch)))
2024-07-02 17:31:36 -03:00
P. Reis
360efe089d
test(EventsDB): throw error for large since, until and kinds filter
2024-07-02 17:31:12 -03:00
P. Reis
cac5c9c1e0
refactor: change timeout error message
2024-07-02 17:17:29 -03:00
P. Reis
e6c38550c6
feat: add onError() function hono handler
2024-07-02 17:15:47 -03:00
P. Reis
a7f2fb06ee
feat(relay): send custom error messages - since, until & kind
2024-07-02 17:09:17 -03:00
Alex Gleason
3e7bab538a
Increase timeout for account statuses endpoint and feed endpoints
2024-07-02 20:13:44 +01:00
Alex Gleason
c7092f5d2d
Increase query timeout of feeds
2024-07-02 09:22:59 +01:00
Alex Gleason
fd769c125c
Merge branch 'zapped-by-pagination-sort-amount' into 'main'
...
zapped_by: add pagination & sort amount
Closes #159
See merge request soapbox-pub/ditto!394
2024-07-02 05:17:11 +00:00
Alex Gleason
4c257fa529
Merge branch 'timeouts' into 'main'
...
Add query timeouts
See merge request soapbox-pub/ditto!403
2024-07-02 05:16:09 +00:00
Alex Gleason
137e2eae52
Merge branch 'nostr-pull-improvements' into 'main'
...
improvements to nostr:pull script
See merge request soapbox-pub/ditto!406
2024-07-02 03:19:21 +00:00
Siddharth Singh
757e5c9baa
print name as import acknowledgement
2024-07-02 05:21:16 +05:30
Siddharth Singh
d2df6721bd
fix kind 1 querying logic
2024-07-02 05:01:16 +05:30
Siddharth Singh
f1e9eb4f4c
fetch each author's notes separately
2024-07-02 04:58:06 +05:30
Siddharth Singh
5f0b1ffe79
fetch profiles separately from notes
2024-07-02 04:56:38 +05:30
Alex Gleason
ae687bb525
Increase timeouts
2024-07-01 23:05:03 +01:00
Alex Gleason
3ae6d39ebc
Increase notifications endpoint timeout
2024-07-01 20:29:06 +01:00
Alex Gleason
4e150edb5b
Actually enable query timeouts 🤦
2024-07-01 19:48:28 +01:00
Alex Gleason
a00db2f4c1
Merge branch 'script-import-user' into 'main'
...
deno task db:import
See merge request soapbox-pub/ditto!405
2024-07-01 17:54:18 +00:00
Siddharth Singh
6974b78952
db:import --> nostr:pull
2024-07-01 23:21:29 +05:30
Siddharth Singh
e07be77de7
fix import order
2024-07-01 23:13:20 +05:30
Siddharth Singh
98e9ccfc46
fix import
2024-07-01 23:08:15 +05:30
Siddharth Singh
434056b839
rename evt to event
2024-07-01 23:06:41 +05:30
Siddharth Singh
ea987dfa14
support raw pubkeys as well as npubs
2024-07-01 23:06:09 +05:30
Siddharth Singh
65f77e845d
fmt
2024-07-01 21:43:01 +05:30
Siddharth Singh
98aaab8e51
switch to deno.land/postgresjs for free 4x speed increase
2024-07-01 21:42:50 +05:30
Alex Gleason
092a20088a
Reduce timeouts
2024-07-01 09:18:42 +01:00
Alex Gleason
c3ffe7c7f7
EventsDB: fix limit being passed to NDatabase
2024-07-01 08:53:03 +01:00
Alex Gleason
d062f6bbb6
Try lazy pool initialization
2024-07-01 08:44:01 +01:00
Alex Gleason
96fe171d65
Use kysely_deno_postgres with simple transactions
2024-07-01 07:22:33 +01:00
Siddharth Singh
480f4ed370
fmt
2024-06-30 16:31:02 +05:30
Siddharth Singh
9f3f6917d3
import script works now
2024-06-30 15:50:25 +05:30
Siddharth Singh
80f6172a64
create first version of import script
2024-06-30 15:35:46 +05:30
Siddharth Singh
ae140933f5
replace kysely_deno_postgres with kysely-postgres-js
2024-06-30 13:13:01 +05:30
Alex Gleason
9ea6c7b00b
Add query timeouts
2024-06-29 22:26:51 +01:00
Alex Gleason
bdd3b2224e
Merge branch 'ms-to-seconds-histogram' into 'main'
...
fix(dbQueryTimeHistogram): change name to milliseconds ms instead of seconds
See merge request soapbox-pub/ditto!401
2024-06-27 17:40:32 +00:00
P. Reis
7f7efd12b8
fix(dbQueryTimeHistogram): change name to milliseconds ms instead of seconds
2024-06-27 13:32:23 -03:00
Alex Gleason
eba0605e32
Merge branch 'db-query-time-prom-metric' into 'main'
...
basic (and incredibly stupid but potentially genius) db_query_time histogram
See merge request soapbox-pub/ditto!400
2024-06-27 13:53:17 +00:00
P. Reis
9cdb8ec534
fix(KyselyLogger): use dbQueryTimeHistogram.observe
2024-06-27 10:34:12 -03:00
P. Reis
a81bc57961
refactor(dbQueryTimeHistogram): get rid of labelNames and buckets
2024-06-27 10:32:07 -03:00
P. Reis
ac9bdfde62
refactor(KyselyLogger): use startTimer instead of observe
2024-06-27 10:23:10 -03:00
P. Reis
d580cac763
refactor: dbQueryTimeHistogram
2024-06-27 10:20:55 -03:00
P. Reis
0f392b2dba
fix(relays): get rid of custom kind 13314 conditional
2024-06-27 10:12:44 -03:00
Siddharth Singh
3e40e690c5
check admin pubkey while changing threshold
2024-06-26 01:44:44 +05:30
Siddharth Singh
ab5f451929
fmt
2024-06-26 01:33:02 +05:30
Siddharth Singh
7c7c584b78
basic (and incredibly stupid but potentially genius) db_query_time histogram
2024-06-26 01:30:16 +05:30
Alex Gleason
a965c3c997
Merge branch 'pg-metrics' into 'main'
...
Collect database connections metrics
See merge request soapbox-pub/ditto!399
2024-06-25 03:14:26 +00:00
Alex Gleason
d7d14194d7
Collect database connections metrics
2024-06-24 22:01:01 -05:00
Alex Gleason
7ecfcd84b3
Actually use metricsMiddleware, whoops
2024-06-24 15:49:27 -05:00
P. Reis
797c866830
refactor: storeEvent does not return event, move kysely into a variable above
2024-06-24 12:07:33 -03:00
Alex Gleason
5889dfbf71
Merge branch 'prom-ws-conn' into 'main'
...
prometheus: add gauges for websocket connections
See merge request soapbox-pub/ditto!398
2024-06-24 14:25:26 +00:00
Alex Gleason
e6cd3d9e47
prometheus: add gauges for websocket connections
2024-06-24 09:23:26 -05:00
Alex Gleason
4ed289e5c3
Merge branch 'prom-relay-verb' into 'main'
...
prometheus: track relay messages by verb
Closes #166
See merge request soapbox-pub/ditto!397
2024-06-24 13:20:48 +00:00
Alex Gleason
e0b1029953
prometheus: track relay messages by verb
2024-06-24 08:18:11 -05:00
P. Reis
fdb720386d
fix(handleZaps): reject all kinds but 9735
2024-06-23 23:51:10 -03:00
P. Reis
e1ee3bd8e9
refactor: remove scavenger, put logic directly into pipeline
2024-06-23 23:45:32 -03:00
P. Reis
05bf417bcc
perf(event_zaps): make two separate indexes instead of a compound index
2024-06-23 22:49:15 -03:00
P. Reis
3a8ade4de2
Merge branch 'main' into zapped-by-pagination-sort-amount
2024-06-23 18:49:56 -03:00
Alex Gleason
961cb070f0
Merge branch 'nostr-external-viewers' into 'main'
...
Add ditto.external property to accounts and statuses
Closes soapbox#1673
See merge request soapbox-pub/ditto!396
2024-06-23 21:11:54 +00:00
Siddharth Singh
3f7687d59f
make changes according to 24-06-24 review
2024-06-24 02:34:49 +05:30
Siddharth Singh
f19afa449a
add the ditto.external field to statuses and accounts
2024-06-24 02:03:31 +05:30
Siddharth Singh
60b4ea4643
add config values for external nostr viewer back to source code
2024-06-24 02:02:58 +05:30
Alex Gleason
39fb1eee5f
Import Sentry into workers
2024-06-23 11:59:08 -05:00
P. Reis
0d7ef68353
feat: add pagination and sort by amount - zapped_by endpoint
2024-06-23 13:38:40 -03:00
Alex Gleason
a1810219f1
Update deno.lock
2024-06-23 10:38:55 -05:00
Alex Gleason
c44347e9d1
Fix relay metrics
2024-06-22 10:28:42 -05:00
Alex Gleason
e50ba819b9
metrics: remove path from fetch and request metrics
2024-06-22 09:08:32 -05:00
Alex Gleason
ea15f291b0
Merge branch 'metrics' into 'main'
...
Add Prometheus metrics
See merge request soapbox-pub/ditto!395
2024-06-22 03:49:07 +00:00
Alex Gleason
88df19494a
Expose /metrics in hono
2024-06-21 22:46:37 -05:00
Alex Gleason
31a5533fd7
Add Prometheus metrics
2024-06-21 22:38:25 -05:00
P. Reis
9731fc2572
feat: add scavenger to the pipeline
2024-06-21 22:25:34 -03:00
P. Reis
89b56539d1
test(scavenger): code coverage 100.00%
2024-06-21 22:23:34 -03:00
P. Reis
771d7f79db
refactor(scavenger): put SQL insert into try-catch block
2024-06-21 21:45:55 -03:00
P. Reis
1b30f10a9f
test(scavenger): store valid data into event_zaps table
2024-06-21 21:39:18 -03:00
P. Reis
2c08b9a2f0
feat: create scavenger and handle kind 9735
2024-06-21 20:36:59 -03:00
P. Reis
ec82e14410
fix: add amount_millisats in event_zaps index
2024-06-21 18:35:26 -03:00
P. Reis
2d937a7378
refactor(event_zaps): rename amount to amount_millisats
2024-06-21 18:20:10 -03:00
Alex Gleason
53e7e856c1
streamingController: bail early if limited
2024-06-20 16:20:18 -05:00
Alex Gleason
44dfd15502
streamingController: rate-limit with ttl-cache
2024-06-20 16:15:31 -05:00
P. Reis
1b4ebaccd8
refactor: resolve import specifier via the active import map
2024-06-20 15:26:08 -03:00
P. Reis
bac0b48801
feat: add migration for event_zaps;create idx_event_zaps_id_amount
2024-06-20 14:36:19 -03:00
P. Reis
ddb93af09f
feat(DittoTables): create EventZapRow
2024-06-20 14:33:25 -03:00
Alex Gleason
766290bd45
accountStatusesController: fix oopsie whoopsie TypeError (gj TypeScript)
2024-06-20 05:59:41 +00:00
Alex Gleason
6bdd29922a
Merge branch 'disabled-no-status' into 'main'
...
Don't display posts of disabled user on their profile
Closes #162
See merge request soapbox-pub/ditto!393
2024-06-19 20:01:07 +00:00
Alex Gleason
003d60c959
Don't display posts of disabled user on their profile
2024-06-19 14:06:02 -05:00
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
Alex Gleason
e3f86e1b54
README: remove WIP comment
...
Although it is, we don't need to warn people about that anymore
2024-06-14 08:34:54 -05:00
Alex Gleason
3b6ebc651b
README: check all the boxes
2024-06-14 08:34:10 -05:00
Alex Gleason
9c640ca86b
Change verson to v1.0.0
2024-06-14 08:32:49 -05:00
Alex Gleason
fe46db3e04
Merge branch 'index-tag-name' into 'main'
...
Index nostr_tags.name
See merge request soapbox-pub/ditto!378
2024-06-14 02:37:58 +00:00
Alex Gleason
91fe7acbd2
Index nostr_tags.name
2024-06-13 21:36:07 -05:00
Alex Gleason
7186f49316
Remove URL restriction from r tag
2024-06-13 19:17:53 -05:00
Alex Gleason
d06cafd0dd
nameRequestController: prevent submitting the same name twice
2024-06-13 19:11:59 -05:00
Alex Gleason
75c165371a
Merge branch 'nip05-ownership' into 'main'
...
Bump Nostrify to v0.23.2, fix nameRequestsController
See merge request soapbox-pub/ditto!377
2024-06-13 23:49:03 +00:00
Alex Gleason
5658c5db08
nameRequestsController: ids.size === 0 => !ids.size
2024-06-13 23:47:12 +00:00
Alex Gleason
44fe0c5e1d
Bump Nostrify to v0.23.2
2024-06-13 18:43:04 -05:00
Alex Gleason
100a5056eb
nameRequestsController: display only owned 3036 events
2024-06-13 18:42:59 -05:00
Alex Gleason
e912210589
Merge branch 'feat-zap-counter' into 'main'
...
Create zap counter and zapped_by endpoint
See merge request soapbox-pub/ditto!371
2024-06-13 18:55:43 +00:00
Alex Gleason
f8f86b832b
Merge branch 'deno-v1.44.2' into 'main'
...
Upgrade Deno to v1.44.2
See merge request soapbox-pub/ditto!376
2024-06-13 18:55:12 +00:00
P. Reis
880b09e016
refactor: parse zap request with NSchema
2024-06-13 15:51:34 -03:00
Alex Gleason
f60f9fd38f
Upgrade Deno to v1.44.2
2024-06-13 13:48:32 -05:00
P. Reis
22dbddb5d3
refactor: zap amount parsed with zod, change zapped_by fields name
2024-06-13 14:21:01 -03:00
P. Reis
7474c1b288
feat: add /api/v1/ditto/statuses/:id{[0-9a-f]{64}}/zapped_by endpoint
2024-06-13 00:49:21 -03:00
P. Reis
b43aed2301
feat: create zappedByController
2024-06-13 00:48:31 -03:00
P. Reis
87967e4137
Merge branch 'main' into feat-zap-counter
2024-06-12 23:59:50 -03:00
Alex Gleason
f1bce3d701
Add a CHANGELOG
2024-06-12 21:12:58 -05:00
Alex Gleason
e96cb3ed40
Update ditto.conf, remove ipfs.service
2024-06-12 21:10:56 -05:00
Alex Gleason
dc3ce6ee4f
Merge branch 'instance-v2' into 'main'
...
Add instance v2 controller
See merge request soapbox-pub/ditto!375
2024-06-13 00:51:31 +00:00
Alex Gleason
4285763c9d
Add instance v2 controller
2024-06-12 19:47:26 -05:00
Alex Gleason
52360b7241
Merge branch 'setup' into 'main'
...
Add a setup script to generate the .env file
See merge request soapbox-pub/ditto!374
2024-06-13 00:32:16 +00:00
Alex Gleason
4e0a210041
Add a setup script to generate the .env file
2024-06-12 19:19:48 -05:00
Alex Gleason
edddc5384c
Support OAuth "state" param
2024-06-12 18:04:04 -05:00
Alex Gleason
7dbd40a88b
Fix issues with adminAccountsController
2024-06-12 12:50:22 -05:00
Alex Gleason
c6da216b4e
trends: calculate since the last label date instead of current date
2024-06-11 19:08:24 -05:00
Alex Gleason
1151f0c28b
EventsDB: strip nip27 mentions from search index
2024-06-11 18:56:11 -05:00
Alex Gleason
b8546ae447
Include kind 3 in trending pubkeys again
2024-06-11 18:15:40 -05:00
Alex Gleason
bf75ad0b41
Merge branch 'oauth-oob' into 'main'
...
Support OAuth OOB
See merge request soapbox-pub/ditto!373
2024-06-11 18:52:55 +00:00
Alex Gleason
ddae4f408a
Support OAuth OOB
2024-06-11 13:40:09 -05:00
Alex Gleason
e45ff80067
Merge branch 'strict-false' into 'main'
...
Disable Hono strict mode
See merge request soapbox-pub/ditto!372
2024-06-11 01:08:22 +00:00
Alex Gleason
899e7672dc
Disable Hono strict mode
2024-06-10 20:04:39 -05:00
P. Reis
0b49ee4fa6
feat(renderStatus): return zaps_amount
2024-06-10 10:39:34 -03:00
P. Reis
d78bc038e8
fix: add zaps_amount to EventStats
2024-06-10 10:38:56 -03:00
P. Reis
18648f7be3
fix(hydrate): return zaps_amount in gatherEventStats
2024-06-10 10:00:58 -03:00
P. Reis
c77da12f9d
Merge branch 'main' into feat-zap-counter
2024-06-10 09:52:28 -03:00
P. Reis
4b58fb9bf2
feat(updateStats): handle kind 9735
2024-06-10 09:35:17 -03:00
P. Reis
d260825660
feat: add 'zaps_amount' to EventStatsRow as number
2024-06-10 09:34:14 -03:00
P. Reis
1f4de9aed0
feat: add migration for 'zaps_amount' column
2024-06-10 09:34:07 -03:00
Alex Gleason
6b3e01a072
Upgrade nostrify to v0.23.1
2024-06-09 21:42:31 -05:00
Alex Gleason
e7ed3c839c
AdminStore: fix users check
2024-06-09 19:48:33 -05:00
Alex Gleason
d1ba797c93
Add revoke_name admin action
2024-06-09 19:22:11 -05:00
Alex Gleason
229975a752
adminActionController: delete user's events on suspend
2024-06-09 18:50:45 -05:00
Alex Gleason
5fdbd572f2
Merge branch 'names-api' into 'main'
...
Names API
See merge request soapbox-pub/ditto!370
2024-06-09 20:35:05 +00:00
Alex Gleason
42fac52e9e
Support streaming notifications
2024-06-09 15:31:14 -05:00
Alex Gleason
2245263011
Add ditto:name_grant notification
2024-06-09 14:50:37 -05:00
Alex Gleason
07a380fb75
Rework adminAccountsController to display pending accounts from nip05 requests
2024-06-09 13:43:40 -05:00
Alex Gleason
5379863d36
Tag the nip05 request in the grant event
2024-06-09 12:13:50 -05:00
Alex Gleason
2a2f43d106
Add admin name approve/reject endpoints
2024-06-09 11:57:10 -05:00
Alex Gleason
594f37ea33
Use past-tense for some n-tag values
2024-06-09 11:26:57 -05:00
Alex Gleason
8802cbd779
suggest -> suggested
2024-06-09 11:24:01 -05:00
Alex Gleason
58a01f90de
Paginate reports
2024-06-09 11:07:37 -05:00
Alex Gleason
8a7cae9841
Refactor reports more, add reopen endpoint
2024-06-09 11:03:46 -05:00
Alex Gleason
177f25ad96
Merge branch 'nip05-request' into 'main'
...
Rework reports, start adding nip05 endpoints
See merge request soapbox-pub/ditto!363
2024-06-09 15:10:30 +00:00
Alex Gleason
bd6424acf5
Add preliminary nameRequestsController
2024-06-08 22:16:34 -05:00
Alex Gleason
a14515bbe0
Rework reports with event sets
2024-06-08 19:48:56 -05:00
Alex Gleason
a2d865d6cc
Generate an internal event for each report and invite request
2024-06-08 18:06:05 -05:00
Alex Gleason
8e5fa9eece
Merge remote-tracking branch 'origin/main' into nip05-request
2024-06-08 15:01:01 -05:00
Alex Gleason
41d61cc8db
Merge branch '30382' into 'main'
...
Remove kind 30361 events, switch to 30382, rework moderation
See merge request soapbox-pub/ditto!369
2024-06-08 19:32:07 +00:00
Alex Gleason
ca57d1be10
Remove stray console.log
2024-06-08 14:28:39 -05:00
Alex Gleason
9c24bac0ca
Pull suggested profiles from kind 30382 events
2024-06-08 14:07:14 -05:00
Alex Gleason
d2df7522c4
Add Pleroma suggest/unsuggest endpoints
2024-06-08 13:57:50 -05:00
Alex Gleason
d2238e80f9
Support Pleroma admin tags
2024-06-08 13:46:10 -05:00
Alex Gleason
284ae9aab7
renderAccount: fix display of roles
2024-06-08 13:14:07 -05:00
Alex Gleason
e5fadafc7a
Create AdminStore to filter out banned users
2024-06-08 12:58:59 -05:00
Alex Gleason
a30cdec79b
pipeline: ensure event doesn't already exist in DB
2024-06-08 12:22:00 -05:00
Alex Gleason
b9922f96a0
adminActionController: mark "n" tags on the user
2024-06-08 12:17:06 -05:00
Alex Gleason
7d54a5c7d0
Kind 30361 -> 30382
2024-06-08 11:32:29 -05:00
Alex Gleason
dde020f22b
Merge branch 'replaceable-deletion' into 'main'
...
EventsDB: replaceable deletions support
See merge request soapbox-pub/ditto!368
2024-06-08 15:02:56 +00:00
P. Reis
b088276c51
fix: remove unused variable
2024-06-08 09:10:19 -03:00
Alex Gleason
fca7825bbf
EventsDB: replaceable deletions support
2024-06-07 22:11:17 -05:00
Siddharth Singh
2380234deb
fmt
2024-06-08 00:30:22 +05:30
Siddharth Singh
2c649e0fa6
support npubs in admin:role script
2024-06-08 00:26:36 +05:30
Alex Gleason
4d0b869bd7
Merge remote-tracking branch 'origin/main' into nip05-request
2024-06-07 11:29:50 -05:00
Alex Gleason
6024586b19
Merge branch 'language' into 'main'
...
Support `language` param with L tags
See merge request soapbox-pub/ditto!365
2024-06-07 15:10:43 +00:00
Alex Gleason
45dee96219
Support language param with L tags
2024-06-07 10:01:08 -05:00
Alex Gleason
a30e19b6b2
Fix nip05 endpoints
2024-06-06 17:35:48 -05:00
Alex Gleason
d2cf2e2e27
Merge branch 'fix-reblog-account-timeline' into 'main'
...
fix: render reblog in account timeline
See merge request soapbox-pub/ditto!364
2024-06-06 20:59:54 +00:00
P. Reis
ae01a19725
fix: render reblog in account timeline
2024-06-06 17:46:53 -03:00
Alex Gleason
4f87287d45
Add invite_request_username property to AdminAccount
2024-06-06 15:26:35 -05:00
Alex Gleason
179cafcc23
adminAccountsController: display users with a NIP-05 grant, allow filtering "pending" users
2024-06-06 14:45:12 -05:00
Alex Gleason
ab2e9d8dd7
nostr.json: determine nip05 grant based on kind 30360 events
2024-06-06 14:19:53 -05:00
Alex Gleason
616c405f0f
Add an endpoint to request a NIP-05 name
2024-06-06 14:14:59 -05:00
Alex Gleason
4361c340b0
stats: handleEvent7 use findLast
2024-06-06 12:11:15 -05:00
Alex Gleason
3115c8d362
Merge branch 'react-last' into 'main'
...
Use last e-tag as reacted event
See merge request soapbox-pub/ditto!362
2024-06-06 16:29:07 +00:00
Alex Gleason
77ce26bf7a
Use last e-tag as reacted event
2024-06-06 11:25:24 -05:00
Alex Gleason
20b11b686b
Merge branch 'zaps-trends' into 'main'
...
Zaps trends
See merge request soapbox-pub/ditto!361
2024-06-06 03:02:43 +00:00
Alex Gleason
b50400cd3d
Fix updateTrendingTags param order
2024-06-05 21:38:34 -05:00
Alex Gleason
fb7b5b6056
Trending Zaps
2024-06-05 21:37:07 -05:00
Alex Gleason
d6085ba3e2
Merge branch 'main' of gitlab.com:soapbox-pub/ditto
2024-06-05 14:49:35 -05:00
Alex Gleason
5c09034151
EventsDB: index the n-tag
2024-06-05 14:39:48 -05:00
Alex Gleason
cbe83af7e7
Merge branch 'bare-linkification' into 'main'
...
Fix linkification of bare domains
See merge request soapbox-pub/ditto!360
2024-06-05 17:19:20 +00:00
Alex Gleason
e383daaae1
Fix linkification of bare domains
2024-06-05 12:12:11 -05:00
Alex Gleason
b16a1d0fd1
Merge branch 'oauth-form' into 'main'
...
Improve OAuth form design slightly
See merge request soapbox-pub/ditto!359
2024-06-05 17:02:23 +00:00
Alex Gleason
3c361cb59b
Improve OAuth form design slightly
2024-06-05 11:37:16 -05:00
Alex Gleason
573ac6e443
Merge branch 'threads-block' into 'main'
...
Hide muted users from threads
See merge request soapbox-pub/ditto!358
2024-06-05 16:16:47 +00:00
Alex Gleason
18d3363b65
contextController: fix hydration again
2024-06-05 11:10:58 -05:00
Alex Gleason
eead178c6a
getAncestors: only query kind 1
2024-06-05 11:05:07 -05:00
Alex Gleason
f7a9bf9ffd
Fix thread hydration
2024-06-05 11:04:25 -05:00
Alex Gleason
c5c4f47bc2
Hide muted users from threads
2024-06-05 11:00:16 -05:00
Alex Gleason
358a6f02a1
Update deno.lock
2024-06-04 20:03:38 -05:00
Alex Gleason
98b19faeee
Merge branch 'feat-zap-account' into 'main'
...
Support zapping account directly - Rewrite zapController
See merge request soapbox-pub/ditto!356
2024-06-04 23:00:34 +00:00
Alex Gleason
92ac97c688
zapController: don't let status_id be an empty string
2024-06-04 17:55:48 -05:00
Alex Gleason
ea73ac2da2
Merge branch 'quote-content' into 'main'
...
Find quote ID in content
See merge request soapbox-pub/ditto!357
2024-06-04 22:49:51 +00:00
Alex Gleason
e29375b070
Find quote ID in content
2024-06-04 17:46:11 -05:00
P. Reis
50e7213954
fix(zapController): get kind 0 with store.query
2024-06-04 16:44:08 -03:00
P. Reis
739fea0890
feat: zap profiles directly
...
Rewrite zapController to return invoice in body instead of in header
2024-06-04 13:37:04 -03:00
Alex Gleason
117d10c673
Merge branch 'main' of gitlab.com:soapbox-pub/ditto
2024-06-04 09:59:23 -05:00
Alex Gleason
c677e9484d
Remove self-service NIP-05 for now
2024-06-04 09:59:11 -05:00
Alex Gleason
89c17957ed
Merge branch 'forked-kysely' into 'main'
...
Switch to soapbox-pub forked kysely-deno-postgres
See merge request soapbox-pub/ditto!355
2024-06-04 14:06:29 +00:00
Siddharth Singh
dfd098626d
update kysely_deno_postgres
2024-06-04 09:51:09 +05:30
Alex Gleason
2f0c5f4abd
Merge branch 'revert-844103c0' into 'main'
...
Revert "Merge branch 'nip19-mentions' into 'main'"
See merge request soapbox-pub/ditto!354
2024-06-03 17:52:50 +00:00
Alex Gleason
a4b96f0a9c
Revert "Merge branch 'nip19-mentions' into 'main'"
...
This reverts merge request !353
2024-06-03 17:49:24 +00:00
Alex Gleason
844103c047
Merge branch 'nip19-mentions' into 'main'
...
Render mentions as nip19, fix href
See merge request soapbox-pub/ditto!353
2024-06-03 17:35:32 +00:00
Alex Gleason
605948267d
Render mentions as nip19, fix href
2024-06-03 12:31:54 -05:00
Alex Gleason
3092030dde
EventsDB: index "r" tags on labels
2024-06-03 00:18:52 -05:00
Alex Gleason
66858bd1c4
Update deno.lock
2024-06-02 23:28:34 -05:00
Alex Gleason
cf5f178e4c
Merge branch 'trending-links' into 'main'
...
Implement trending links
See merge request soapbox-pub/ditto!352
2024-06-03 04:27:55 +00:00
Alex Gleason
4329d8ed9f
Implement trending links
2024-06-02 23:19:53 -05:00
Alex Gleason
9cdfc188aa
Merge branch 'suggestions-global' into 'main'
...
Suggestions global
See merge request soapbox-pub/ditto!351
2024-06-03 04:03:48 +00:00
Alex Gleason
6d5dbc029e
Remove self from suggested list
2024-06-02 22:59:06 -05:00
Alex Gleason
a325908d41
Fix rendering suggested accounts
2024-06-02 22:54:38 -05:00
Alex Gleason
68375c555e
Add trending users to suggested
2024-06-02 22:52:05 -05:00
Alex Gleason
da0139ff4e
Suggestions: add offset based pagination
2024-06-02 22:46:07 -05:00
Alex Gleason
09585214e5
Merge branch 'quotes-count' into 'main'
...
Quotes count
See merge request soapbox-pub/ditto!350
2024-06-03 01:39:54 +00:00
Alex Gleason
3874a7fe8d
Add quotesController to list the quotes of a status
2024-06-02 20:36:34 -05:00
Alex Gleason
22c840092f
Add quotes count
2024-06-02 20:30:57 -05:00
Alex Gleason
a9dcebd7c2
Index r tags
2024-06-02 20:10:32 -05:00
Alex Gleason
71e6af1292
Merge branch 'hashtag-labels' into 'main'
...
Save trending hashtags as labels
See merge request soapbox-pub/ditto!348
2024-06-03 00:58:54 +00:00
Alex Gleason
9d2194a928
trendingStatusesController: enforce kind 1 events
2024-06-02 19:54:48 -05:00
Alex Gleason
6a4fc7b6ba
Track trending pubkeys too, why not
2024-06-02 19:51:04 -05:00
Alex Gleason
051f23d908
Remove TrendsWorker
2024-06-02 19:44:20 -05:00
Alex Gleason
c7c75a7147
Get rid if trending-events.ts, do everything with tag values (brave)
2024-06-02 19:40:55 -05:00
Alex Gleason
3373673706
updateTrendingTags: accept limit param
2024-06-02 19:27:44 -05:00
Alex Gleason
b35090ef10
cron: DRY updateTrendingTags
2024-06-02 19:25:49 -05:00
Alex Gleason
7e44368c08
trends: reverse the history dates
2024-06-02 19:07:10 -05:00
Alex Gleason
133a684d32
Fix tag order
2024-06-02 19:02:31 -05:00
Alex Gleason
fc11e34499
trends: notes -> #e, normalize
2024-06-02 18:28:43 -05:00
Alex Gleason
76c882d836
Crunch the tag history in the controller
2024-06-02 17:47:36 -05:00
Alex Gleason
b46bcc559e
cron: hashtags -> #t, links -> #r
2024-06-02 16:59:11 -05:00
Alex Gleason
e236e98259
cron: remove the unnecessary word "cache" from all the things
2024-06-02 16:45:20 -05:00
Alex Gleason
7f16a8d556
Support trending links
2024-06-02 16:42:25 -05:00
Alex Gleason
cd46d63999
getTrendingHashtags -> getTrendingTagValues
2024-06-02 16:17:42 -05:00
Alex Gleason
b5545ddb60
getTrendingNotes -> getTrendingEvents
2024-06-02 16:07:25 -05:00
Alex Gleason
03ea457933
Merge remote-tracking branch 'origin/main' into hashtag-labels
2024-06-02 15:46:11 -05:00
Alex Gleason
bafb42f034
Fix suggested timeline endpoint typo
2024-06-02 13:53:45 -05:00
Alex Gleason
29753795e4
Merge branch 'suggested-timeline' into 'main'
...
Add suggested timeline endpoint
See merge request soapbox-pub/ditto!349
2024-06-02 18:47:19 +00:00
Alex Gleason
857cfc7259
Add suggested timeline endpoint
2024-06-02 13:40:44 -05:00
Alex Gleason
c969738736
Save trending hashtags as labels
2024-06-02 13:15:05 -05:00
Alex Gleason
3363688977
trends: support offset parameter
2024-06-02 13:07:49 -05:00
Alex Gleason
95620c3dd7
Merge branch 'replies-count' into 'main'
...
stats: track replies_count
See merge request soapbox-pub/ditto!347
2024-06-02 17:41:03 +00:00
Alex Gleason
498f69f024
stats: track replies_count
2024-06-02 12:26:43 -05:00
Alex Gleason
2b9154b05a
Merge branch 'trends-labels' into 'main'
...
Trends: label trending posts by publishing an event
See merge request soapbox-pub/ditto!346
2024-06-02 17:20:27 +00:00
Alex Gleason
a911e36a7e
trendingStatusesController: sort a simpler way
2024-06-02 12:15:32 -05:00
Alex Gleason
45d9a113c3
trendingStatusesController: sort events in the order they appear in the label
2024-06-02 12:08:23 -05:00
Alex Gleason
0f59b3c96b
Trends: label trending posts by publishing an event
2024-06-02 11:58:21 -05:00
Alex Gleason
832e1c7e60
Fix label missing nip05 marker
2024-06-01 18:15:31 -05:00
Alex Gleason
816f3c806d
Remove the console.log from accountLookupController
2024-06-01 10:46:19 -05:00
Alex Gleason
4e80fdcc7d
Revert "renderAccount: fix crash encoding invalid pubkey"
...
This reverts commit ffda62a4b0 .
2024-06-01 10:40:00 -05:00
Alex Gleason
f30319bea2
Merge branch '0-dim' into 'main'
...
Upgrade Nostrify to v0.22.5, don't render media dimensions with 0x0 dim
See merge request soapbox-pub/ditto!344
2024-06-01 15:39:29 +00:00
Alex Gleason
efaa5323ec
Upgrade Nostrify to v0.22.5, don't render media dimensions with 0x0 dim
2024-06-01 10:28:30 -05:00
Alex Gleason
ffda62a4b0
renderAccount: fix crash encoding invalid pubkey
2024-05-31 21:42:39 -05:00
Alex Gleason
adcaad2863
paginatedList: only return next when page isn't empty
2024-05-31 16:10:59 -05:00
Alex Gleason
97d629cf07
Merge branch 'paginated-list' into 'main'
...
Paginate list events (kind 3, 10000)
See merge request soapbox-pub/ditto!343
2024-05-31 20:37:33 +00:00
Alex Gleason
2ff929ca95
renderAccounts: reverse the list of pubkeys
2024-05-31 15:30:04 -05:00
Alex Gleason
b7943669b2
Paginate list events (kind 3, 10000)
2024-05-31 15:26:55 -05:00
Alex Gleason
1290aeeb5e
deno.lock: lint-staged
2024-05-31 14:28:43 -05:00
Alex Gleason
0da4b1d1c9
Merge branch 'lockfile' into 'main'
...
Add a lockfile
See merge request soapbox-pub/ditto!342
2024-05-31 19:23:48 +00:00
Alex Gleason
6e70f5c304
Add a lockfile
2024-05-31 14:09:08 -05:00
Alex Gleason
b62b5d7020
Merge branch 'relay-fu' into 'main'
...
relay: give a nice "fuck you" to clients sending invalid filters
See merge request soapbox-pub/ditto!341
2024-05-31 19:06:39 +00:00
Alex Gleason
2c5c093a39
Merge branch 'policy-once' into 'main'
...
Import the custom policy only once
See merge request soapbox-pub/ditto!340
2024-05-31 19:00:07 +00:00
Alex Gleason
761143a317
relay: give a nice "fuck you" to clients sending invalid filters
2024-05-31 13:58:06 -05:00
Alex Gleason
5ca1e2fd26
CustomPolicy: switch to NoOpPolicy if the policy isn't found
2024-05-31 13:51:10 -05:00
Alex Gleason
9d50a76c0c
Merge remote-tracking branch 'origin/main' into policy-once
2024-05-31 13:47:53 -05:00
Alex Gleason
a7ffe89107
Merge branch 'since-limit' into 'main'
...
EventsDB: throw an error if `since` and `until` are too large
See merge request soapbox-pub/ditto!339
2024-05-31 18:37:29 +00:00
Alex Gleason
3dd25feddc
EventsDB: throw an error if since and until are too large
2024-05-31 13:33:53 -05:00
Alex Gleason
a2c5e824b9
Import the custom policy only once
2024-05-31 12:27:38 -05:00
Alex Gleason
f98ebd359a
Merge branch 'rm-empty-tag-filters' into 'main'
...
Remove empty tag filters
See merge request soapbox-pub/ditto!337
2024-05-30 18:05:19 +00:00
Alex Gleason
f4f3c8d4d1
Remove empty tag filters
2024-05-30 13:01:39 -05:00
Alex Gleason
e543e4c2a5
Merge branch 'created-at-up' into 'main'
...
pipeline: move created_at check up
See merge request soapbox-pub/ditto!336
2024-05-30 17:37:38 +00:00
Alex Gleason
ec6b72229c
pipeline: move created_at check up
2024-05-30 12:33:55 -05:00
Alex Gleason
594be870e1
Merge branch 'quote-uri' into 'main'
...
Add quote URI to the event content
See merge request soapbox-pub/ditto!335
2024-05-30 17:09:43 +00:00
Alex Gleason
e8ca21acde
mediaCompat consistency
2024-05-30 12:05:25 -05:00
Alex Gleason
c0123df79a
Strip newlines from end of status
2024-05-30 12:03:01 -05:00
Alex Gleason
86b3a51590
Add quote URI to the event content
2024-05-30 11:55:03 -05:00
Alex Gleason
7784025fa3
Merge branch 'reblogs-replies-fix' into 'main'
...
Fix reblogs showing up in replies
See merge request soapbox-pub/ditto!334
2024-05-30 16:35:20 +00:00
Alex Gleason
c9302cae6a
Fix reblogs showing up in replies
2024-05-30 11:31:33 -05:00
Alex Gleason
f874d3e137
Merge branch 'fix-streaming' into 'main'
...
Fix streaming token
See merge request soapbox-pub/ditto!332
2024-05-30 03:04:04 +00:00
Alex Gleason
74e141ba08
Fix streaming token
2024-05-29 21:57:53 -05:00
Alex Gleason
29a2a4ecdb
Merge branch 'created_at-max-value' into 'main'
...
Enforce a created_at max value
See merge request soapbox-pub/ditto!331
2024-05-29 23:30:02 +00:00
Alex Gleason
60b762a165
Enforce a created_at max value
2024-05-29 18:26:10 -05:00
Alex Gleason
1ad1808ee2
Merge branch 'connections' into 'main'
...
Add OAuth tokens
See merge request soapbox-pub/ditto!325
2024-05-29 21:44:52 +00:00
Alex Gleason
03c6f23605
Use a specific version of nostr-tools
2024-05-29 16:29:46 -05:00
Alex Gleason
625b9a3ae5
ReadOnlySigner: improve error message
2024-05-29 16:16:17 -05:00
Alex Gleason
7221b5f203
grant_type nostr -> nostr_bunker, connections -> nip46_tokens
2024-05-29 16:14:21 -05:00
Alex Gleason
b805c4c67e
Merge branch 'fix-get-ln-invoice-header' into 'main'
...
CORS - Expose 'Ln-Invoice' header
See merge request soapbox-pub/ditto!330
2024-05-29 12:13:53 +00:00
P. Reis
83020e9111
fix: expose 'Ln-Invoice' header
2024-05-29 09:02:17 -03:00
Alex Gleason
153c115f24
Merge branch 'fix-get-invoice' into 'main'
...
ZapController - Purify event before calling getInvoice()
See merge request soapbox-pub/ditto!329
2024-05-29 02:16:49 +00:00
P. Reis
27ed364f4a
fix(zapController): purify event before getting invoice
2024-05-28 22:42:00 -03:00
Alex Gleason
a617e32d65
Merge remote-tracking branch 'origin/main' into connections
2024-05-28 18:28:50 -05:00
Alex Gleason
e29519e877
Merge branch 'rm-nwc' into 'main'
...
Remove NWC, return a Ln-Invoice header on the zap endpoint
See merge request soapbox-pub/ditto!328
2024-05-28 22:10:56 +00:00
Alex Gleason
78044cc8b6
Remove NWC, return a Ln-Invoice header on the zap endpoint
2024-05-28 16:54:57 -05:00
Alex Gleason
5d05d1d570
Merge remote-tracking branch 'origin/main' into connections
2024-05-28 16:01:49 -05:00
Alex Gleason
a690fa3096
Merge branch 'fix-zap-remove-user-field-check' into 'main'
...
Allow zap request event to proceed even if it does not have a 'user' field
See merge request soapbox-pub/ditto!327
2024-05-28 20:45:44 +00:00
P. Reis
a519637bee
fix(pipeline-zap): allow 'event' to proceed even without 'user' field
2024-05-28 17:40:10 -03:00
Alex Gleason
5f73232418
relay: remove enforceFilters function
2024-05-28 14:51:07 -05:00
Alex Gleason
981f8c5d22
relay: remove enforceFilters function
2024-05-28 13:59:57 -05:00
Alex Gleason
a6a74a16a8
Have OAuth form accept a bunker URI
2024-05-28 13:48:27 -05:00
Alex Gleason
1aa2bafc44
OAuth: add a "nostr" grant_type
2024-05-26 21:26:59 -05:00
Alex Gleason
c55cd2a977
blob -> bytea
2024-05-26 20:41:14 -05:00
Alex Gleason
b1a497b127
signerMiddleware: accept token1 bech32's
2024-05-26 20:27:46 -05:00
Alex Gleason
0141a732c3
Add connections table
2024-05-26 19:21:15 -05:00
Alex Gleason
11474c5cbd
Merge branch 'postgres' into 'main'
...
Test Postgres in the CI
See merge request soapbox-pub/ditto!324
2024-05-26 23:51:52 +00:00
Alex Gleason
8f3b9df1e1
Test Postgres in the CI
2024-05-26 18:42:14 -05:00
Alex Gleason
a6cae8f878
renderAccount: display_name cannot be undefined
2024-05-26 12:59:04 -05:00
Alex Gleason
1fff0834eb
Merge branch 'fix-reblog' into 'main'
...
Fix renderReblog on other Mastodon apps
See merge request soapbox-pub/ditto!323
2024-05-26 17:57:40 +00:00
Alex Gleason
875b678948
Fix renderReblog on other Mastodon apps
2024-05-26 12:55:01 -05:00
Alex Gleason
30881275ad
Merge branch 'encrypted-tag' into 'main'
...
Add `encrypted` tag to Pleroma configs event
See merge request soapbox-pub/ditto!322
2024-05-26 17:45:44 +00:00
Alex Gleason
c03be1726e
Add encrypted tag to Pleroma configs event
2024-05-26 12:43:08 -05:00
Alex Gleason
3f9908449b
Merge branch 'dont-encrypt-settings' into 'main'
...
Don't encrypt settings_store
See merge request soapbox-pub/ditto!321
2024-05-26 17:37:09 +00:00
Alex Gleason
a66df583fb
Don't encrypt settings_store
2024-05-26 12:34:18 -05:00
Alex Gleason
d6727d2d09
Merge branch 'ping' into 'main'
...
Set idleTimeout to 30s for WebSocket connections
See merge request soapbox-pub/ditto!320
2024-05-25 19:12:14 +00:00
Alex Gleason
16558e24c9
Set idleTimeout to 30s for WebSocket connections
2024-05-25 13:39:19 -05:00
Alex Gleason
6bfe611847
Merge branch 'rm-optimizer' into 'main'
...
Remove Optimizer and Reqmeister
See merge request soapbox-pub/ditto!319
2024-05-25 17:24:58 +00:00
Alex Gleason
a15013e22a
Remove Optimizer and Reqmeister
2024-05-25 12:22:01 -05:00
Alex Gleason
b77e14dac3
Merge branch 'pipeline-encounter-race' into 'main'
...
pipeline: fix race condition in encounterEvent
See merge request soapbox-pub/ditto!318
2024-05-25 17:16:55 +00:00
Alex Gleason
6684edaeaf
pipeline: fix race condition in encounterEvent
2024-05-25 12:13:55 -05:00
Alex Gleason
4111d8b3cb
Merge branch 'file-routes' into 'main'
...
Optimize filesystem routes
See merge request soapbox-pub/ditto!317
2024-05-25 16:55:24 +00:00
Alex Gleason
1ee0ca8d5c
Optimize filesystem routes
2024-05-25 11:18:17 -05:00
Alex Gleason
40f72f750e
Merge branch 'assemble-events-bench' into 'main'
...
Add benchmark for assembleEvents
See merge request soapbox-pub/ditto!316
2024-05-25 15:52:10 +00:00
Alex Gleason
1ffc1fc8f4
hydrate.bench: move the events variable above the bench
2024-05-25 10:49:09 -05:00
Alex Gleason
3c950fb4ba
Update assembleEvents bench with stats
2024-05-25 10:40:23 -05:00
Alex Gleason
14e5948394
Add assembleEvents bench
2024-05-25 10:33:23 -05:00
Alex Gleason
40369be6c6
Merge branch 'fix-schema-update-credentials' into 'main'
...
Only allow valid data or empty string in update credentials
See merge request soapbox-pub/ditto!315
2024-05-25 14:34:43 +00:00
Alex Gleason
c89867f486
Remove unused NostrMetadata import
2024-05-25 09:25:09 -05:00
Alex Gleason
b64ea84b82
Use z.or
2024-05-25 09:20:16 -05:00
Alex Gleason
4f32972d85
updateCredentialsController: delete empty fields from metadata
2024-05-25 09:17:56 -05:00
P. Reis
5dee6450ec
fix(update credentials): allow only valid data or empty string
2024-05-25 10:41:39 -03:00
Alex Gleason
cf71c48f09
Merge branch 'familiar-followers' into 'main'
...
Implement familiar followers
See merge request soapbox-pub/ditto!314
2024-05-25 03:39:04 +00:00
Alex Gleason
622a2b2a4f
Implement familiar followers
2024-05-24 22:30:56 -05:00
Alex Gleason
ca755b6d77
Merge branch 'emoji-resp' into 'main'
...
reactionController: fix the response
See merge request soapbox-pub/ditto!313
2024-05-25 02:03:02 +00:00
Alex Gleason
c4ea243bdc
reactionController: fix the response
2024-05-24 20:59:53 -05:00
Alex Gleason
fb80c9c2fe
Merge branch 'no-recount' into 'main'
...
Stop recounting author stats constantly
See merge request soapbox-pub/ditto!312
2024-05-25 01:29:30 +00:00
Alex Gleason
69ff568214
Stop recounting author stats constantly
2024-05-24 20:24:17 -05:00
Alex Gleason
6062378b7e
Merge branch 'stats-race' into 'main'
...
stats: fix race conditions (on Postgres)
See merge request soapbox-pub/ditto!311
2024-05-25 01:21:41 +00:00
Alex Gleason
4330cae626
Fix Conf.db in migrations
2024-05-24 20:16:51 -05:00
Alex Gleason
04018015c5
stats: fix race conditions (on Postgres)
2024-05-24 20:11:22 -05:00
Alex Gleason
250998405a
Rework database Conf to easily get the dialect
2024-05-24 20:07:38 -05:00
Alex Gleason
ab22feacd2
Merge branch 'rework-stats' into 'main'
...
Rework stats
See merge request soapbox-pub/ditto!308
2024-05-24 23:05:24 +00:00
Alex Gleason
8344ac6b39
stats.test: insert the note for FK constraint
2024-05-24 17:55:25 -05:00
Alex Gleason
c6dea07ac3
Add back reactions_count column so trending can still work
2024-05-24 17:51:32 -05:00
Alex Gleason
f7c9a96719
Nuke the old stats module, support emoji reactions on posts
2024-05-24 17:40:51 -05:00
Alex Gleason
ee2065b76b
stats: add (and test) countAuthorStats
2024-05-24 16:24:47 -05:00
Alex Gleason
34f3cc8d24
Fully test the new stats module
2024-05-24 15:52:30 -05:00
Alex Gleason
83b2a627c3
Merge remote-tracking branch 'origin/main' into rework-stats
2024-05-24 13:15:30 -05:00
Alex Gleason
16ce2452c5
Merge branch 'update-credentials-validation' into 'main'
...
updateCredentialsController: stricter validation, support bot field
See merge request soapbox-pub/ditto!310
2024-05-24 18:13:57 +00:00
Alex Gleason
307090e32f
updateCredentialsController: stricter validation, support bot field
2024-05-24 13:09:32 -05:00
Alex Gleason
0a346228ee
Merge remote-tracking branch 'origin/main' into rework-stats
2024-05-24 12:57:12 -05:00
Alex Gleason
5b6b87eeb3
Merge branch 'website' into 'main'
...
Upgrade Nostrify to v0.22.2, enforce http(s) in website field
See merge request soapbox-pub/ditto!309
2024-05-24 17:48:44 +00:00
Alex Gleason
c30d6beea2
Upgrade nostrify to v0.22.4, zod to v3.23.8
2024-05-24 12:45:26 -05:00
Alex Gleason
8c12ffaaa1
Upgrade Nostrify to v0.22.2, enforce http(s) in website field
2024-05-24 11:30:56 -05:00
Alex Gleason
0fd5f26977
stats: handle kind 5 deletions
2024-05-23 23:02:21 -05:00
Alex Gleason
1da4566c42
Basically rewrite the stats module
2024-05-23 22:41:16 -05:00
Alex Gleason
ae271b6505
Merge branch 'reactions' into 'main'
...
reactionsController: filter out non-RGI reactions
See merge request soapbox-pub/ditto!306
2024-05-23 19:23:36 +00:00
Alex Gleason
834c9f2171
reactionsController: filter out non-RGI reactions
2024-05-23 14:20:15 -05:00
Alex Gleason
ea1c06f0c3
Merge branch 'save-lightning-address' into 'main'
...
Save user lud16 & website into kind 0
Closes soapbox#1662
See merge request soapbox-pub/ditto!305
2024-05-23 19:07:05 +00:00
P. Reis
c7726b652b
feat: save user lud16 & website into kind 0
2024-05-23 15:59:29 -03:00
Alex Gleason
20cca186ce
Merge branch 'reactions' into 'main'
...
favouritedByController: filter only likes
See merge request soapbox-pub/ditto!304
2024-05-23 18:54:01 +00:00
Alex Gleason
c7e5076434
favouritedByController: filter only likes
2024-05-23 13:50:45 -05:00
Alex Gleason
c2562a3ed1
Merge branch 'reactions' into 'main'
...
Add reactionsController
See merge request soapbox-pub/ditto!303
2024-05-23 18:27:27 +00:00
Alex Gleason
3f3a302002
Order imports
2024-05-23 13:23:42 -05:00
Alex Gleason
b197b57ea8
Support reactionsController with a single emoji
2024-05-23 13:22:04 -05:00
Alex Gleason
86a931d725
Add reactionsController
2024-05-23 13:16:24 -05:00
Alex Gleason
f6973e11fa
Merge branch 'reactions' into 'main'
...
Add pleroma_emoji_reactions to instance features
See merge request soapbox-pub/ditto!302
2024-05-23 17:58:11 +00:00
Alex Gleason
777686939c
Add pleroma_emoji_reactions to instance features
2024-05-23 11:47:01 -05:00
Alex Gleason
e06dda4014
Merge branch 'reactions' into 'main'
...
Add and delete reactions
See merge request soapbox-pub/ditto!301
2024-05-23 00:57:01 +00:00
Alex Gleason
b0a53f4789
Add delete reaction controller
2024-05-22 18:33:00 -05:00
Alex Gleason
93922b3f93
Add reactionController
2024-05-22 17:06:02 -05:00
Alex Gleason
dfb0b0b874
Merge branch 'trends-limits' into 'main'
...
Set trending statuses default limit to 20
See merge request soapbox-pub/ditto!300
2024-05-22 18:10:49 +00:00
Alex Gleason
9c7a650d1f
Set trending statuses default limit to 20
2024-05-22 13:07:54 -05:00
Alex Gleason
ca4f6ccb5c
Merge branch 'nip05-tldts' into 'main'
...
NIP05: skip network request for invalid TLDs
See merge request soapbox-pub/ditto!299
2024-05-22 17:55:52 +00:00
Alex Gleason
823f389bce
NIP05: skip network request for invalid TLDs
2024-05-22 12:52:59 -05:00
Alex Gleason
1d37106b27
unreblogStatusController: repostedEvent -> repostEvent
2024-05-22 12:08:20 -05:00
Alex Gleason
6d1c21dce2
Merge branch 'render-event-accounts-logic' into 'main'
...
renderEventAccounts: rework the logic, call hydrateEvents
See merge request soapbox-pub/ditto!298
2024-05-22 16:58:17 +00:00
Alex Gleason
b33f7d2cc4
renderEventAccounts: rework the logic, call hydrateEvents
2024-05-22 11:44:48 -05:00
Alex Gleason
4d9b4d9475
Merge branch 'r-tags' into 'main'
...
Add r-tags to statuses
See merge request soapbox-pub/ditto!297
2024-05-22 02:33:27 +00:00
Alex Gleason
1a66570b56
Use linkify to parse hashtags when creating a status, too
2024-05-21 21:30:26 -05:00
Alex Gleason
5de7366ff0
Add r-tags to statuses
2024-05-21 21:22:25 -05:00
Alex Gleason
493a5c9fcf
Merge branch 'trending-statuses' into 'main'
...
Trending Posts
See merge request soapbox-pub/ditto!296
2024-05-22 01:44:23 +00:00
Alex Gleason
80e886bfff
Rework trending posts (it's much faster)
2024-05-21 20:38:57 -05:00
Alex Gleason
5da5848ca6
Trending statuses first iteration
2024-05-21 19:48:26 -05:00
Alex Gleason
1c9dbd070e
Merge branch 'refactor-trends' into 'main'
...
Refactor trending tags
See merge request soapbox-pub/ditto!282
2024-05-21 23:18:06 +00:00
Alex Gleason
80344e3c5f
Fix trends cache
2024-05-21 18:15:17 -05:00
Alex Gleason
5822253796
Fix trends
2024-05-21 18:00:57 -05:00
Alex Gleason
b2a5ff3eaf
Make Trends use SQLite again
2024-05-21 17:14:26 -05:00
Alex Gleason
4d21dd05a8
Merge remote-tracking branch 'origin/main' into refactor-trends
2024-05-21 16:45:58 -05:00
Alex Gleason
ac11475f62
Merge branch 'search-index' into 'main'
...
Index the Postgres FTS column
See merge request soapbox-pub/ditto!295
2024-05-21 21:35:59 +00:00
Alex Gleason
101a16bc12
Index the Postgres FTS column
2024-05-21 16:30:48 -05:00
Alex Gleason
00cfd0af68
Merge branch 'descendants-filter' into 'main'
...
getDescendants: filter out non-replies
See merge request soapbox-pub/ditto!294
2024-05-21 19:40:15 +00:00
Alex Gleason
9ab38203df
getDescendants: filter out non-replies
2024-05-21 14:37:18 -05:00
Alex Gleason
d4625fe60d
Merge branch 'reply-root' into 'main'
...
Add root tags to replies
See merge request soapbox-pub/ditto!293
2024-05-21 19:30:47 +00:00
Alex Gleason
fc325880d2
Add root tags to replies
2024-05-21 14:27:49 -05:00
Alex Gleason
838bdb6e52
Merge branch 'imeta-strip-fix' into 'main'
...
Fix imeta stripping so it doesn't remove a bunch of newlines
See merge request soapbox-pub/ditto!292
2024-05-21 19:08:51 +00:00
Alex Gleason
bf6dc22c5a
Fix imeta stripping so it doesn't remove a bunch of newlines
2024-05-21 14:05:48 -05:00
Alex Gleason
f21a7191ef
Merge branch 'legacy-quote' into 'main'
...
Fix display of legacy quote tags, add tests for tags.ts
See merge request soapbox-pub/ditto!291
2024-05-21 18:49:34 +00:00
Alex Gleason
9873afab69
Remove old tags.test.ts
2024-05-21 13:37:24 -05:00
Alex Gleason
5e607f664e
Add tags test
2024-05-21 13:32:27 -05:00
Alex Gleason
9839b8138f
tags.ts -> utils/tags.ts
2024-05-21 13:08:08 -05:00
Alex Gleason
f30aad11a5
Fix legacy quote posts
2024-05-21 13:04:23 -05:00
Alex Gleason
d0ab1d55ce
Merge branch 'rm-activitypub' into 'main'
...
Remove ActivityPub actor endpoint, remove Webfinger/host-meta, remove deps.ts
See merge request soapbox-pub/ditto!290
2024-05-21 17:57:14 +00:00
Alex Gleason
938e26e2a0
Remove webfinger and host-meta
2024-05-21 12:54:10 -05:00
Alex Gleason
8f393aa604
Remove ActivityPub actor endpoint, remove deps.ts
2024-05-21 12:51:19 -05:00
Alex Gleason
40d2ed1f0a
Merge branch 'dompurify' into 'main'
...
sanitize-html -> isomorphic-dompurify
See merge request soapbox-pub/ditto!289
2024-05-21 17:47:55 +00:00
Alex Gleason
d4a029b35b
sanitize-html -> isomorphic-dompurify
2024-05-21 12:44:54 -05:00
Alex Gleason
9582ce87ba
Merge branch 'entities' into 'main'
...
lodash -> entities
See merge request soapbox-pub/ditto!288
2024-05-21 17:24:29 +00:00
Alex Gleason
83e51ad67e
lodash -> entities
2024-05-21 12:21:35 -05:00
Alex Gleason
dd81d6feaf
Merge branch 'soapbox-script' into 'main'
...
feat: add script that installs latest soapbox
See merge request soapbox-pub/ditto!287
2024-05-21 14:07:44 +00:00
P. Reis
7d786d731e
feat: add script that installs latest soapbox
2024-05-21 10:09:06 -03:00
Alex Gleason
7f8690605b
Merge branch 'feat-persist-user-preference' into 'main'
...
Persist user preferences through kind 30078
See merge request soapbox-pub/ditto!191
2024-05-21 04:18:03 +00:00
Alex Gleason
590da75cf2
Merge remote-tracking branch 'origin/main' into feat-persist-user-preference
2024-05-20 14:02:38 -05:00
Alex Gleason
a961eabb0e
Merge branch 'lnurl-fix' into 'main'
...
Fix crash parsing Lightning URL
Closes #139
See merge request soapbox-pub/ditto!286
2024-05-20 17:54:13 +00:00
Alex Gleason
839c95f9a9
Merge branch 'refactor-test' into 'main'
...
Refactor EventsDB test to use eventFixture()
Closes #135
See merge request soapbox-pub/ditto!285
2024-05-20 17:51:52 +00:00
Alex Gleason
6861dc1d57
Fix crash parsing Lightning URL
...
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/139
2024-05-20 12:49:01 -05:00
P. Reis
98fd4babce
test(EventsDB): use eventFixture()
2024-05-20 14:46:53 -03:00
Alex Gleason
78b9c62af3
Merge branch 'unindex-bio' into 'main'
...
EventsDB: don't index the user's bio for kind 0 events
See merge request soapbox-pub/ditto!284
2024-05-20 16:58:08 +00:00
Alex Gleason
7b099ee565
EventsDB: don't index the user's bio for kind 0 events
2024-05-20 11:39:44 -05:00
Alex Gleason
281f0f9625
Merge branch 'nostrify-22' into 'main'
...
Upgrade Nostrify to v0.22.0
See merge request soapbox-pub/ditto!283
2024-05-19 21:00:26 +00:00
Alex Gleason
6f6e87525e
Remove DittoUploader interface in favor of NUploader
2024-05-19 15:57:04 -05:00
Alex Gleason
0541287f0e
Replace our NostrBuildUploader with the one from Nostrify
2024-05-19 15:43:46 -05:00
Alex Gleason
f0b247130f
Add support for Blossom uploader
2024-05-19 15:42:45 -05:00
Alex Gleason
7c5b7c5d83
Upgrade Nostrify to v0.22.0
2024-05-19 15:38:42 -05:00
Siddharth Singh
29eb87dab3
format
2024-05-20 00:14:29 +05:30
Siddharth Singh
949697d80a
fix type error caused by trends refactor
2024-05-20 00:11:29 +05:30
Siddharth Singh
f19629600d
rewrite trendsworker with kysely and deno cron, format changes
2024-05-20 00:05:03 +05:30
Alex Gleason
c83bac93bd
Merge branch 'account-search-limit' into 'main'
...
accountSearchController: respect the `limit` param
See merge request soapbox-pub/ditto!281
2024-05-19 16:48:33 +00:00
Alex Gleason
9754e29603
accountSearchController: respect the limit param
2024-05-19 11:45:42 -05:00
Alex Gleason
050cfff88d
Merge branch 'nip21-mentions-fix' into 'main'
...
Fix NIP-27 mentions
See merge request soapbox-pub/ditto!280
2024-05-19 16:37:24 +00:00
Alex Gleason
540bd058a2
Fix NIP-27 mentions
2024-05-19 11:33:59 -05:00
Alex Gleason
b6b09d7b90
Merge branch 'attachment-guess-mime' into 'main'
...
renderAttachment: guess mime from url
See merge request soapbox-pub/ditto!279
2024-05-19 14:16:57 +00:00
Alex Gleason
7f5179efca
renderAttachment: guess mime from url
2024-05-19 09:13:53 -05:00
Alex Gleason
5523c3fc0e
verifyCredentials: wait up to 5 seconds
2024-05-18 23:02:59 -05:00
Alex Gleason
3d93be6a13
Merge branch 'uploader-type' into 'main'
...
Rewrite all the uploaders
See merge request soapbox-pub/ditto!278
2024-05-19 03:20:30 +00:00
Alex Gleason
acef173ac4
Do things the boilerplatey way just for consistency
2024-05-18 22:15:33 -05:00
Alex Gleason
24659d8edb
IPFSUploader: make schema private
2024-05-18 22:11:54 -05:00
Alex Gleason
6542d6a777
Move uploader.ts to utils, make it kind of like api.ts
2024-05-18 22:04:43 -05:00
Alex Gleason
82c03dcb56
Rewrite all the uploaders
2024-05-18 22:00:24 -05:00
Alex Gleason
b567a108a6
Merge branch 'uploader-type' into 'main'
...
Make Uploaders return NIP-94 tags
See merge request soapbox-pub/ditto!277
2024-05-18 23:26:00 +00:00
Alex Gleason
6090c4a6d9
Make Uploaders return NIP-94 tags
2024-05-18 18:23:04 -05:00
Alex Gleason
ff39dfc4ec
Merge branch 'strip-imeta' into 'main'
...
Strip imeta links from the end of the content
See merge request soapbox-pub/ditto!276
2024-05-18 22:24:43 +00:00
Alex Gleason
e5595d34be
Strip imeta links from the end of the content
2024-05-18 17:15:27 -05:00
Alex Gleason
cc487f898e
Merge branch 'nostrbuild' into 'main'
...
Nostr.build uploader
See merge request soapbox-pub/ditto!275
2024-05-18 21:58:12 +00:00
Alex Gleason
353111051a
Use dimensions from nostr.build
2024-05-18 16:53:17 -05:00
Alex Gleason
ce49c500ae
renderStatus: fix duplicated attachments
2024-05-18 16:47:47 -05:00
Alex Gleason
c89be75e5b
Add a nostr.build uploader
2024-05-18 16:22:24 -05:00
Alex Gleason
1c4dbc9520
Merge branch 'imeta' into 'main'
...
Support imeta media attachments
See merge request soapbox-pub/ditto!274
2024-05-18 20:52:25 +00:00
Alex Gleason
cbf0bc3594
Fix note test
2024-05-18 15:46:28 -05:00
Alex Gleason
c8b999a1f7
imeta: don't get attachment ID from a tag
2024-05-18 15:36:17 -05:00
Alex Gleason
b1b341d3b8
Insert media URL into text
2024-05-18 15:29:12 -05:00
Alex Gleason
91ea4577f1
Filter out attachments with no url
2024-05-18 14:58:48 -05:00
Alex Gleason
e7d350a0e3
Fix uploading by URL
2024-05-18 14:54:10 -05:00
Alex Gleason
611a94bdcf
Fix uploading (almost)
2024-05-18 14:32:50 -05:00
Alex Gleason
7d34b9401e
Support imeta tags
2024-05-18 13:22:20 -05:00
Alex Gleason
c8f9483795
Add note.test.ts
2024-05-18 11:56:22 -05:00
Alex Gleason
942260aa54
note.ts -> utils/note.ts
2024-05-18 11:53:33 -05:00
Alex Gleason
5997ff0fff
Create utils/media.ts, move some code from note.ts there
2024-05-18 11:52:33 -05:00
Alex Gleason
f97064afb4
Remove dependency on npm:mime, switch to @std/media-types
2024-05-18 11:35:29 -05:00
Alex Gleason
4c87e723c0
Bump nostrify to v0.21.1
2024-05-18 10:56:34 -05:00
Alex Gleason
6ac4c072a6
Fix crash decoding url
2024-05-18 08:20:43 -05:00
Alex Gleason
3e93b42251
stats: add a debug call
2024-05-18 08:13:37 -05:00
Alex Gleason
f9a0055e78
stats: add a Semaphore when refreshing author stats
2024-05-17 19:00:56 -05:00
Alex Gleason
23a366081f
stats: maybe refresh stats when updating
2024-05-17 18:42:45 -05:00
Alex Gleason
45ab5f6672
Merge branch 'recompute-stats' into 'main'
...
Recompute author stats
See merge request soapbox-pub/ditto!273
2024-05-17 23:32:38 +00:00
Alex Gleason
bf479d0162
Move refreshAuthorStatsDebounced to stats.ts
2024-05-17 18:26:55 -05:00
Alex Gleason
5c2e3450a9
Refresh author stats: less naive way
2024-05-17 17:50:30 -05:00
Alex Gleason
17b6330193
Downgrade Deno to v1.43.3 due to TypeScript issues
2024-05-17 16:59:45 -05:00
Alex Gleason
ae9516b445
refreshAuthorStats: return the stats
2024-05-17 16:23:38 -05:00
Alex Gleason
6995bd2b29
Upgrade Deno to the latest version
2024-05-17 16:23:23 -05:00
Alex Gleason
a39910fa98
Add a function to recalculate author stats
2024-05-17 13:18:23 -05:00
Alex Gleason
1a32150f3d
Merge branch 'nonzero-stats' into 'main'
...
Never let stats be less than 0
See merge request soapbox-pub/ditto!272
2024-05-17 16:42:12 +00:00
Alex Gleason
251500fba1
Never let stats be less than 0
2024-05-17 11:39:21 -05:00
Alex Gleason
80e487817e
Merge branch 'fix-followers-and-following-when-no-kind-0' into 'main'
...
Render followers & following list when the accounts do not have a kind 0
Closes #134
See merge request soapbox-pub/ditto!271
2024-05-17 14:28:50 +00:00
P. Reis
4cc1d13d44
fix: render followers & following list when no kind 0
2024-05-17 11:25:17 -03:00
Alex Gleason
bc538e182a
Merge branch 'fix-repost-render' into 'main'
...
renderReblog() - render account from pubkey if there is no kind 0
Closes #129
See merge request soapbox-pub/ditto!270
2024-05-17 13:30:35 +00:00
P. Reis
2aee2e6bf6
fix(renderReblog): render account from pubkey if there is no kind 0
2024-05-17 09:45:19 -03:00
Siddharth Singh
83a7b1f231
create tags_usages kysely table
2024-05-17 14:46:20 +05:30
Alex Gleason
5aacbe7af5
Fix media uploads due to 'awaiting' a query builder instance
2024-05-16 18:53:04 -05:00
Alex Gleason
04980089b4
Merge branch 'pgfts' into 'main'
...
Upgrade Nostrify to v0.20.0, enable Postgres FTS
See merge request soapbox-pub/ditto!269
2024-05-16 22:24:21 +00:00
Alex Gleason
baa6986880
EventsDB: enable fts conditionally based on DATABASE_URL
2024-05-16 15:48:22 -05:00
Alex Gleason
00d4bf2344
Upgrade Nostrify to v0.20.0, enable Postgres FTS
2024-05-16 15:42:32 -05:00
Alex Gleason
cb2e8607fa
Merge branch 'refactor-unreblog' into 'main'
...
Mastodon API (Unreblog) - Query with Storages.db()
See merge request soapbox-pub/ditto!266
2024-05-16 20:17:38 +00:00
Alex Gleason
405714960e
Merge branch 'mixed-filters' into 'main'
...
Upgrade Nostrify to v0.19.2, fix crash on mixed filters
See merge request soapbox-pub/ditto!268
2024-05-16 18:01:22 +00:00
Alex Gleason
6c3f0849b2
Upgrade Nostrify to v0.19.2, fix crash on mixed filters
2024-05-16 12:57:01 -05:00
Alex Gleason
8c46560df4
Merge branch 'phantom-deletions' into 'main'
...
Upgrade Nostrify to v0.19.1, fix phantom deletions
See merge request soapbox-pub/ditto!267
2024-05-16 15:50:46 +00:00
Alex Gleason
031a3eac04
EventsDB.test: import order
2024-05-16 10:30:54 -05:00
Alex Gleason
4df2c7ba9c
Improve EventsDB error handling
2024-05-16 10:29:14 -05:00
Alex Gleason
2ede439005
Upgrade Nostrify to v0.19.1, fix phantom deletions
2024-05-16 09:29:53 -05:00
P. Reis
e61cbecb3e
refactor(unreblog): update error messages and query with Storages.db()
2024-05-16 10:38:30 -03:00
Alex Gleason
b2c26c9374
Merge branch '4036' into 'main'
...
Port 8000 -> 4036 in all the places
See merge request soapbox-pub/ditto!265
2024-05-16 13:13:12 +00:00
Alex Gleason
4b07f2a12a
Actually, set default LOCAL_DOMAIN based on PORT
2024-05-16 08:10:13 -05:00
Alex Gleason
0acde23c46
Port 8000 -> 4036 in all the places
2024-05-16 08:08:36 -05:00
Alex Gleason
4fafce27eb
Merge branch 'policy-env' into 'main'
...
Remote Policies
See merge request soapbox-pub/ditto!264
2024-05-16 01:41:30 +00:00
Alex Gleason
f14b64b003
Remove useless policy dir
2024-05-15 20:35:35 -05:00
Alex Gleason
0b6b62f3b3
policyWorker: import deno-safe-fetch
2024-05-15 20:27:54 -05:00
Alex Gleason
9e9ab40886
Run the custom policy in a worker for security
2024-05-15 20:19:49 -05:00
Alex Gleason
6a1b8b0943
policy: improve error handling
2024-05-15 19:30:20 -05:00
Alex Gleason
8a672c93ec
Debug custom policies with ditto:policy
2024-05-15 18:59:51 -05:00
Alex Gleason
8e68d13ff1
Let custom policy be configured with DITTO_POLICY
2024-05-15 18:49:55 -05:00
Alex Gleason
132eed36b4
Merge branch 'docker' into 'main'
...
Add a basic Dockerfile
See merge request soapbox-pub/ditto!263
2024-05-15 23:41:33 +00:00
Alex Gleason
597946002d
Add a basic Dockerfile
2024-05-15 18:38:51 -05:00
Alex Gleason
750e4a8bff
Merge branch 'port-4036' into 'main'
...
Use port 4036 by default
See merge request soapbox-pub/ditto!262
2024-05-15 22:11:58 +00:00
Alex Gleason
417bd64f4c
Use port 4036 by default
2024-05-15 17:09:12 -05:00
Alex Gleason
a8fcd31999
Merge branch 'favicon' into 'main'
...
Add a default favicon.ico
See merge request soapbox-pub/ditto!261
2024-05-15 21:32:45 +00:00
Alex Gleason
19b2fd19e8
Add a default favicon.ico
2024-05-15 16:30:03 -05:00
Alex Gleason
a31e28a719
Merge branch 'mark-readme' into 'main'
...
README.md: mark moderation and notifications as done
See merge request soapbox-pub/ditto!260
2024-05-15 16:10:58 +00:00
P. Reis
e15779dcfd
docs: mark moderation and notifications as done
2024-05-15 13:06:07 -03:00
Alex Gleason
e2cf9457cf
Merge branch 'stats-fix' into 'main'
...
stats: fix kysely screaming that we're awaiting a builder instance
See merge request soapbox-pub/ditto!259
2024-05-15 15:12:53 +00:00
Alex Gleason
4d3a9c6e23
stats: fix kysely screaming that we're awaiting a builder instance
2024-05-15 10:09:31 -05:00
Alex Gleason
406baf8a1d
events-db -> EventsDB
2024-05-15 08:18:31 -05:00
Alex Gleason
25a49db3ae
Merge branch 'ndatabase' into 'main'
...
EventsDB: make it a simple wrapper around NDatabase
See merge request soapbox-pub/ditto!258
2024-05-15 13:16:21 +00:00
Alex Gleason
7021b0d4fd
'null' -> null
2024-05-15 08:13:19 -05:00
Alex Gleason
171350a34d
Drop deleted_at column
2024-05-15 08:08:30 -05:00
Alex Gleason
137bd0dae0
adminAccountsController: fix type error with DittoEvent
2024-05-14 22:19:33 -05:00
Alex Gleason
ae0ec7be7e
EventsDB: remove DittoEvent dependency
2024-05-14 21:29:04 -05:00
Alex Gleason
221c41fdfa
EventsDB: make it a simple wrapper around NDatabase
2024-05-14 21:23:25 -05:00
Alex Gleason
998d0851df
Merge branch 'ndb' into 'main'
...
EventsDB: migrate tables to match NDatabase
See merge request soapbox-pub/ditto!257
2024-05-15 02:02:52 +00:00
Alex Gleason
69108c0375
UnattachedMedia: point to new EventsDB tables
2024-05-14 20:58:29 -05:00
Alex Gleason
b3985e740b
EventsDB: migrate tables to match NDatabase
2024-05-14 20:54:09 -05:00
Alex Gleason
af9fb6aaa3
Sort imports of streaming.ts
2024-05-14 20:05:38 -05:00
Alex Gleason
91a7ebc634
Merge branch 'fix-blocked-users-in-streaming' into 'main'
...
Streaming API - Posts from blocked users does not show up in Global tab
Closes #109
See merge request soapbox-pub/ditto!250
2024-05-15 00:58:56 +00:00
Alex Gleason
64e7655b81
Merge branch 'recompute' into 'main'
...
Add stats:recompute script
See merge request soapbox-pub/ditto!254
2024-05-15 00:55:52 +00:00
P. Reis
a1326dedcc
fix(streaming): async storage
2024-05-14 21:53:50 -03:00
P. Reis
9e34838de8
Merge branch 'main' into fix-blocked-users-in-streaming
...
(((updating local branch)))
2024-05-14 21:51:53 -03:00
Alex Gleason
b00ac8c768
Merge branch 'rm-deps-test' into 'main'
...
Remove deps-test.ts
See merge request soapbox-pub/ditto!256
2024-05-15 00:50:39 +00:00
P. Reis
0383726663
fix(streaming): use policy instead of hand coding
2024-05-14 21:44:19 -03:00
Alex Gleason
374dc3495c
Merge remote-tracking branch 'origin/main' into recompute
2024-05-14 19:43:50 -05:00
Alex Gleason
f163af55d8
Remove deps-test.ts
2024-05-14 19:19:57 -05:00
Alex Gleason
31fc246526
Merge branch 'storages-async' into 'main'
...
Async Storages
See merge request soapbox-pub/ditto!255
2024-05-15 00:17:17 +00:00
P. Reis
4d342dff4a
fix(streaming): move get muted users logic before upgrading connection to web socket
2024-05-14 21:14:00 -03:00
Alex Gleason
2fd50261f9
streaming: actually hydrate with optimizer
2024-05-14 19:11:38 -05:00
Alex Gleason
477ee8b124
Fix hydrateEvents in streaming
2024-05-14 19:09:25 -05:00
Alex Gleason
d3a7f0849f
deno lint
2024-05-14 19:02:15 -05:00
Alex Gleason
3d1d56355d
Update scripts for async db
2024-05-14 18:51:35 -05:00
Alex Gleason
99a6c668c8
Update recompute script
2024-05-14 18:50:05 -05:00
Alex Gleason
47bc551e0b
Merge branch 'storages-async' into recompute
2024-05-14 18:48:26 -05:00
Alex Gleason
b4d48218b8
Add missing nostr-relaypool import
2024-05-14 18:46:55 -05:00
Alex Gleason
a4226a963f
Rework Kysely db to be async
2024-05-14 18:44:42 -05:00
Alex Gleason
68b5887ed0
Don't let your memes be dreams
2024-05-14 18:24:34 -05:00
Alex Gleason
08c9ee0670
Refactor client and firehose
2024-05-14 16:25:24 -05:00
Alex Gleason
3c706dc81b
Storages: make all methods async (total chaos and destruction)
2024-05-14 16:10:50 -05:00
Alex Gleason
dc87d3599d
Add stats:recompute script
2024-05-14 15:59:17 -05:00
Alex Gleason
0a79ecb0a3
Merge branch 'stats-race' into 'main'
...
Update stats before storing event
See merge request soapbox-pub/ditto!253
2024-05-14 20:29:18 +00:00
Alex Gleason
7feecab723
stats: fix ambiguous column name error in Postgres?
2024-05-14 15:25:56 -05:00
Alex Gleason
eef349f1e9
Update stats before storing event
2024-05-14 15:05:59 -05:00
Alex Gleason
a3597edb90
Merge branch 'signer-middleware' into 'main'
...
Add a signerMiddleware, c.get('pubkey') -> c.get('signer')
See merge request soapbox-pub/ditto!251
2024-05-14 19:51:58 +00:00
Alex Gleason
efa1c92044
Merge remote-tracking branch 'origin/main' into signer-middleware
2024-05-14 14:48:47 -05:00
Alex Gleason
e53ea22274
Remove unused import
2024-05-14 14:48:37 -05:00
Alex Gleason
f12bb4b643
Merge branch 'block-globally-muted-user-to-post' into 'main'
...
Do not allow deactivated accounts to post
Closes #118
See merge request soapbox-pub/ditto!245
2024-05-14 19:46:36 +00:00
Alex Gleason
46b5bbf841
Uppercase CustomPolicy
2024-05-14 14:39:48 -05:00
Alex Gleason
ecfea827e1
Move RelayError into its own file, add helper methods
2024-05-14 14:38:38 -05:00
Alex Gleason
45b766af4d
Remove 'user' from AppContext
2024-05-14 14:24:48 -05:00
Alex Gleason
a061c248bd
signerMiddleware: add debug log
2024-05-14 14:18:44 -05:00
Alex Gleason
e5392f4d9e
Merge remote-tracking branch 'origin/main' into signer-middleware
2024-05-14 14:16:38 -05:00
Alex Gleason
b5f0d2f0e6
docs/events: clean up User event kind
2024-05-14 14:12:43 -05:00
Alex Gleason
dd3c64ef84
Remove accidentally checked in file
2024-05-14 13:09:16 -05:00
Alex Gleason
2f938ae42e
Merge branch 'hydrate-test-kind-1984' into 'main'
...
Hydrate test: code coverage in kind 1984 & refactor to import fixtures in a dynamic way
Closes #125
See merge request soapbox-pub/ditto!249
2024-05-14 17:49:19 +00:00
P. Reis
b626d75262
fix(streaming): posts from blocked users does not show up in global tab
2024-05-14 14:22:37 -03:00
Alex Gleason
cd2a35d951
ConnectSigner: make getPublicKey used the stored value instead of actually hitting the relay
2024-05-14 12:20:36 -05:00
Alex Gleason
03182f8a5a
ConnectSigner: implement getRelays, support nprofile auth again
2024-05-14 12:14:27 -05:00
Alex Gleason
084143c5c8
Rename all middleware to thingMiddleware
2024-05-14 12:07:54 -05:00
Alex Gleason
1accae2222
Add a ConnectSigner to wrap our default opts to NConnectSigner, add c.set('signer') calls to nip98 middleware
2024-05-14 12:04:31 -05:00
Alex Gleason
c715827c81
c.get('pubkey') -> await c.get('signer')?.getPublicKey()
2024-05-14 11:57:03 -05:00
Alex Gleason
c5fbe69b80
requirePubkey -> requireSigner
2024-05-14 11:42:53 -05:00
Alex Gleason
5a2b1b7de7
Destroy everything
2024-05-14 11:40:20 -05:00
Alex Gleason
ee7864da8c
Add a signerMiddleware
2024-05-14 11:31:20 -05:00
P. Reis
caaa7016f0
test(hydrate): refactor to import fixtures with 'eventFixture' function
2024-05-13 21:56:29 -03:00
Alex Gleason
b7821f6585
Merge branch 'fix-mentions' into 'main'
...
Fix mentions
See merge request soapbox-pub/ditto!248
2024-05-13 23:53:10 +00:00
Alex Gleason
cc9d2efef9
Fix mentions
2024-05-13 18:50:20 -05:00
P. Reis
78137f373f
test(hydrate): kind 1984
2024-05-13 20:22:27 -03:00
P. Reis
c67cb034b0
test: kind 1984 (author 'dictator') fixture
2024-05-13 20:20:18 -03:00
P. Reis
f225f7498d
test: kind 1 (author is 'george orwell') fixture
2024-05-13 20:19:30 -03:00
P. Reis
aec0afd731
test: kind 0(user 'george orwell') fixture
2024-05-13 20:18:42 -03:00
P. Reis
9cb63a9918
test: kind 0(user 'dictator') fixture
2024-05-13 20:18:11 -03:00
P. Reis
4029971407
fix(pipeline): load custom policy if available
2024-05-13 17:44:33 -03:00
Alex Gleason
6105e00c80
pipeline: add a placeholder for custom policy
2024-05-13 12:43:01 -05:00
Alex Gleason
9bff7a5086
Fix some issues in pipeline and utils/api.ts
2024-05-13 12:30:56 -05:00
Alex Gleason
2140b3fbb2
lookupPubkey: check the bech32 first
2024-05-13 11:21:17 -05:00
Alex Gleason
2010483089
Merge branch 'nostrconnect' into 'main'
...
NIP-46 client auth first pass
See merge request soapbox-pub/ditto!247
2024-05-12 21:57:15 +00:00
Alex Gleason
dc8010a78e
getClientConnectUri: fix description value
2024-05-12 13:33:22 -05:00
Alex Gleason
3b0739f187
Add a getClientConnectUri function, add "Nostr Connect" link in the OAuth form
2024-05-12 13:12:46 -05:00
Alex Gleason
bdfa6f8826
Add a getInstanceMetadata function to DRY a few controllers
2024-05-12 12:32:40 -05:00
Alex Gleason
928ae4ec22
oauthController: calculate the script hash on the fly so we can edit it
2024-05-12 10:56:27 -05:00
Alex Gleason
4b7804872c
Merge branch 'explicit-addressing' into 'main'
...
Support Explicit Addressing
See merge request soapbox-pub/ditto!246
2024-05-11 20:27:32 +00:00
Alex Gleason
65034a4aae
Support Explicit Addressing
2024-05-11 14:34:02 -05:00
P. Reis
04968fefaa
test(MuteListPolicy): update error msg
2024-05-11 14:02:24 -03:00
P. Reis
fe66937bba
feat: do not allow deactivated accounts to post
2024-05-11 12:04:44 -03:00
P. Reis
801e68c6c4
fix: add error prefix according to NIP-01
2024-05-11 12:03:41 -03:00
Alex Gleason
d278fc980a
Merge branch 'fix-reports-no-kind-0' into 'main'
...
renderAdminAccount - Get account from pubkey if there is no kind 0 in the database
Closes #122
See merge request soapbox-pub/ditto!243
2024-05-10 22:20:23 +00:00
Alex Gleason
c017770760
! -> ?.
2024-05-10 22:17:44 +00:00
P. Reis
323e425e8b
fix(renderAdminReport): make sure reportedPubkey is not undefined
2024-05-10 19:05:15 -03:00
Alex Gleason
d142ce618d
Merge branch 'feat-create-mute-policy' into 'main'
...
Create MuteListPolicy
See merge request soapbox-pub/ditto!242
2024-05-10 21:35:13 +00:00
P. Reis
732cb45b1e
test(UserStore): update with 100.00% code coverage
2024-05-10 18:20:00 -03:00
P. Reis
4fdf15761c
refactor(UserStore): remove isMuted function
2024-05-10 18:18:55 -03:00
P. Reis
3970bb81f7
refactor(MuteListPolicy): simplify condition
2024-05-10 18:03:35 -03:00
P. Reis
d3b7668a1e
fix: create renderAdminAccountFromPubkey and use it if reported account doesn't have a kind 0
2024-05-10 16:51:07 -03:00
Alex Gleason
615ce4a2ac
Merge branch 'fixtures-fn' into 'main'
...
Add an eventFixture function to import fixtures in tests
See merge request soapbox-pub/ditto!244
2024-05-10 19:19:56 +00:00
Alex Gleason
282612b53c
Add an eventFixture function to import fixtures in tests
2024-05-10 14:10:19 -05:00
P. Reis
4069ddc02c
refactor(MuteListPolicy): human lint preference
2024-05-10 14:37:02 -03:00
P. Reis
86518dbac5
refactor(MuteListPolicy): shorthand private constructor
2024-05-10 14:34:48 -03:00
Alex Gleason
83adf4759e
Update README.md
2024-05-10 16:10:11 +00:00
P. Reis
ebeec2ccba
test: MuteListPolicy with 100.00% code coverage
2024-05-10 11:26:15 -03:00
P. Reis
26dd4606ed
test: UserStore with 100.00% code coverage
2024-05-10 10:35:04 -03:00
P. Reis
0c0465f131
refactor(UserStore): move mute logic to separate function & create isMuted() function
2024-05-10 10:31:34 -03:00
P. Reis
c85f31f63f
feat: create MuteListPolicy class
2024-05-10 10:19:15 -03:00
Alex Gleason
afcf28b506
Merge branch 'admin-accounts-perform-action' into 'main'
...
Implement Mastodon API - perform action against an account
Closes #114
See merge request soapbox-pub/ditto!240
2024-05-09 16:46:54 +00:00
P. Reis
4fa6b96d15
refactor(admin action): mute account even if it doesn't have a kind 0
2024-05-09 13:44:05 -03:00
Alex Gleason
8429eed838
Merge branch 'docs-in-readme' into 'main'
...
Reference ditto docs in README.md
See merge request soapbox-pub/ditto!241
2024-05-09 13:24:03 +00:00
P. Reis
a1acc85494
feat: reference ditto docs in README.md
2024-05-09 09:44:05 -03:00
P. Reis
9e2225873d
feat: implement action against an account
...
- Action of deactivating an account by muting it in the entire server
2024-05-08 20:12:55 -03:00
P. Reis
e4952f0c21
feat: create updateListAdminEvent() & updateAdminEvent()
2024-05-08 20:12:20 -03:00
Alex Gleason
e29fb28d78
Merge branch 'report-nits' into 'main'
...
Small reportController refactoring
See merge request soapbox-pub/ditto!238
2024-05-08 22:29:41 +00:00
Alex Gleason
06a1612750
Merge branch 'eventsdb-crash' into 'main'
...
EventsDB: fix postgres crash when there are no local users
See merge request soapbox-pub/ditto!239
2024-05-08 22:14:39 +00:00
Alex Gleason
64e49bca9d
EventsDB: fix postgres crash when there are no local users
2024-05-08 17:11:48 -05:00
Alex Gleason
c7e8beebc6
renderReport: whoops, event.author -> event.reported_account
2024-05-08 15:06:33 -05:00
Alex Gleason
8530749192
reportController: hydrate the report itself to get the author
2024-05-08 15:03:58 -05:00
Alex Gleason
f99958c40e
reportsController -> reportController
2024-05-08 14:59:30 -05:00
Alex Gleason
ccf126516d
Merge branch 'quote-repost-quote' into 'main'
...
quote_repost -> quote
See merge request soapbox-pub/ditto!237
2024-05-08 19:58:40 +00:00
Alex Gleason
a82af47c67
quote_repost -> quote
2024-05-08 14:53:33 -05:00
Alex Gleason
71899e54de
Merge branch 'global-feed-index' into 'main'
...
Add a created_at, kind index for the global feed
See merge request soapbox-pub/ditto!236
2024-05-08 19:37:16 +00:00
Alex Gleason
b16d5b749e
Add a created_at, kind index for the global feed
2024-05-08 14:34:22 -05:00
Alex Gleason
c6c10e4b7f
Merge branch 'order-by-addr' into 'main'
...
EventsDB: avoid ORDER BY when querying replaceable events by author
See merge request soapbox-pub/ditto!235
2024-05-08 19:06:53 +00:00
Alex Gleason
6bc051c06b
EventsDB: avoid ORDER BY when querying replaceable events by author
2024-05-08 13:56:37 -05:00
Alex Gleason
b712986d37
Merge branch 'kysely-log' into 'main'
...
Use a Kysely logger to log SQL regardless of the adapter used
See merge request soapbox-pub/ditto!234
2024-05-08 17:59:41 +00:00
Alex Gleason
43e8f2a698
Use a Kysely logger to log SQL regardless of the adapter used
2024-05-08 12:56:42 -05:00
Alex Gleason
dbe22b9710
Merge branch 'pg-pool-size' into 'main'
...
Add PG_POOL_SIZE environment variable
See merge request soapbox-pub/ditto!233
2024-05-08 16:49:42 +00:00
Alex Gleason
5e1cfad5cc
Add PG_POOL_SIZE environment variable
2024-05-08 11:46:27 -05:00
Alex Gleason
b6dd49e2ef
Merge branch 'relationships-mute' into 'main'
...
Relationships: fix blocks and mutes being switched
See merge request soapbox-pub/ditto!232
2024-05-08 16:13:34 +00:00
Alex Gleason
7ad0e4d9e9
Relationships: fix blocks and mutes being switched
2024-05-08 10:41:05 -05:00
Alex Gleason
e879f1a21f
Merge branch 'admin-report-mark-as-resolved' into 'main'
...
Delete report with createAdminEvent() instead of createEvent()
See merge request soapbox-pub/ditto!231
2024-05-08 13:38:43 +00:00
P. Reis
e8b690e262
fix(admin resolve): create admin event instead of create normal event
2024-05-08 10:32:10 -03:00
Alex Gleason
fd05e4c5c4
Merge branch 'admin-report-mark-as-resolved' into 'main'
...
Implement Mastodon API - mark a report as resolved
Closes #112
See merge request soapbox-pub/ditto!230
2024-05-08 13:17:28 +00:00
P. Reis
57495dbd7a
feat: implement report resolve
2024-05-07 20:49:42 -03:00
Alex Gleason
66bae5eea7
Merge branch 'lint-staged' into 'main'
...
Add lint-staged
See merge request soapbox-pub/ditto!229
2024-05-07 18:51:14 +00:00
Alex Gleason
7ecad73490
Add lint-staged
2024-05-07 13:45:42 -05:00
Alex Gleason
6391d625c2
Merge branch 'revert-f9aaabc1' into 'main'
...
Revert "Merge branch 'deno-fmt-on-commit' into 'main'"
See merge request soapbox-pub/ditto!228
2024-05-07 18:41:00 +00:00
Alex Gleason
6509932ab0
Revert "Merge branch 'deno-fmt-on-commit' into 'main'"
...
This reverts merge request !227
2024-05-07 18:37:57 +00:00
Alex Gleason
f9aaabc14b
Merge branch 'deno-fmt-on-commit' into 'main'
...
fix: remove --check flag in deno fmt
See merge request soapbox-pub/ditto!227
2024-05-07 18:07:31 +00:00
P. Reis
b523f57a82
fix: remove --check flag in deno fmt
2024-05-07 15:04:33 -03:00
Alex Gleason
5b76efeb94
Merge branch 'deno-fmt-on-commit' into 'main'
...
Check for formatting errors when committing
Closes #111
See merge request soapbox-pub/ditto!226
2024-05-07 18:00:43 +00:00
P. Reis
cfc119f311
feat: check for formatting errors when committing
2024-05-07 14:53:32 -03:00
Alex Gleason
cb89b7a80c
Merge branch 'single-admin-reports-api' into 'main'
...
Implement Mastodon API - view single report
Closes #104
See merge request soapbox-pub/ditto!225
2024-05-07 14:50:32 +00:00
P. Reis
53a8871a54
refactor: change 'singleAdminReportsController' to 'adminReportController'
2024-05-07 11:29:49 -03:00
P. Reis
17706d3b20
feat: implement view single report
2024-05-07 10:19:08 -03:00
Alex Gleason
120003c5c8
Merge branch 'admin-reports-api' into 'main'
...
Return from renderReport() in case pubkey is undefined
See merge request soapbox-pub/ditto!224
2024-05-06 18:06:53 +00:00
P. Reis
8d7621fbaf
fix: return in case pubkey is undefined
2024-05-06 14:40:56 -03:00
Alex Gleason
a3e54fdff4
DittoPostgres: use pool size for number of CPU cores
2024-05-06 11:44:33 -05:00
Alex Gleason
f4c02f1568
Merge branch 'admin-reports-api' into 'main'
...
Implement Mastodon API - view information about all reports
See merge request soapbox-pub/ditto!221
2024-05-06 15:41:24 +00:00
P. Reis
24068d12d0
refactor(reports): rename variables and remove type assertion
2024-05-06 11:47:05 -03:00
P. Reis
394599734f
fix(reports): put notes in tag & only let comment in event.content
2024-05-05 15:45:24 -03:00
P. Reis
7890504add
refactor: view info about all reports
2024-05-05 14:20:13 -03:00
Alex Gleason
d867a516d5
Merge branch 'gen-junit-reports' into 'main'
...
generate junit reports for GitLab CI
See merge request soapbox-pub/ditto!223
2024-05-05 15:01:12 +00:00
Siddharth Singh
0e115481d9
generate junit reports for GitLab CI
2024-05-05 20:26:20 +05:30
P. Reis
d903a2d0fb
Merge branch 'main' into admin-reports-api
...
Update local branch & solve conflicts in hydrate.ts
2024-05-04 20:23:16 -03:00
P. Reis
14802dd38a
feat(hydrate): create gatherTargetAccounts() & gatherReportedStatuses()
2024-05-04 20:18:36 -03:00
P. Reis
4d5d4868ce
feat: create renderAdminReport() func
2024-05-04 20:14:39 -03:00
P. Reis
8a7f0892d7
fix: check if event is not undefined in renderAdminAccount
2024-05-04 20:12:34 -03:00
P. Reis
b8df95408b
feat: add target_account & reported_statuses to DittoEvent type
2024-05-04 20:11:29 -03:00
P. Reis
af7b83cf8a
feat: create /api/v1/admin/reports endpoint & controller
2024-05-04 20:10:18 -03:00
Alex Gleason
35360434ef
Merge branch 'fix-unattached-media' into 'main'
...
UnattachedMedia: return early when querying nothing
See merge request soapbox-pub/ditto!220
2024-05-04 21:51:26 +00:00
P. Reis
b57188943f
feat: renderAdminAccount() supports both kind 0 & kind 30361
2024-05-04 16:29:31 -03:00
Alex Gleason
3770d8a0dd
UnattachedMedia: return early when querying nothing
2024-05-04 13:14:03 -05:00
P. Reis
f08211e2a1
refactor(admin-accounts): resolve import specifier via the active import map
2024-05-04 10:29:08 -03:00
Alex Gleason
fbf3011e3e
Merge branch 'hydrate-reactions' into 'main'
...
Notifications: fix Favourites and EmojiReacts not being displayed
See merge request soapbox-pub/ditto!219
2024-05-04 12:48:59 +00:00
Alex Gleason
0a3be0da58
Notifications: fix Favourites and EmojiReacts not being displayed
2024-05-03 21:22:53 -05:00
Alex Gleason
e25372313b
suggestions: fix profile lookup, limit to 20 items for now
2024-05-03 18:32:35 -05:00
Alex Gleason
4ee4266843
instance: add 'v2_suggestions' to features
2024-05-03 18:28:07 -05:00
Alex Gleason
cfb0d3f04c
Merge branch 'suggestions' into 'main'
...
Start suggestions API
See merge request soapbox-pub/ditto!218
2024-05-03 23:24:53 +00:00
Alex Gleason
0f3fbbcb28
Start suggestions API
2024-05-03 18:21:40 -05:00
Alex Gleason
b60d4fde3d
Merge branch 'streaming-rm-userstore' into 'main'
...
Streaming: temporarily remove UserStore (allow blocked posts through)
See merge request soapbox-pub/ditto!217
2024-05-03 22:44:25 +00:00
Alex Gleason
5001567b00
Streaming: temporarily remove UserStore (allow blocked posts through)
2024-05-03 17:20:35 -05:00
Alex Gleason
a45d45d614
Merge branch 'implemented' into 'main'
...
Clean up "not implemented" endpoints
See merge request soapbox-pub/ditto!216
2024-05-03 22:18:35 +00:00
Alex Gleason
7efd5c1822
Clean up "not implemented" endpoints
2024-05-03 17:09:20 -05:00
Alex Gleason
ad3a1ef137
Merge branch 'markers' into 'main'
...
Implement Markers API
See merge request soapbox-pub/ditto!215
2024-05-03 21:24:40 +00:00
Alex Gleason
a2c5b5e61d
Markers: only allow 'home' and 'notifications' markers
2024-05-03 16:20:07 -05:00
Alex Gleason
8e178338b7
Implement Markers API
2024-05-03 16:17:36 -05:00
Alex Gleason
2b2499849f
pipeline: fix reqmeister crash, probably
2024-05-03 13:52:11 -05:00
Alex Gleason
60116ee651
Merge branch 'pool-req' into 'main'
...
PoolStore: add req method
See merge request soapbox-pub/ditto!214
2024-05-03 18:42:35 +00:00
Alex Gleason
e9c5ef89ff
Reqmeister: improve API and fetching logic (untested)
2024-05-03 13:33:50 -05:00
Alex Gleason
6b20104327
filter: use getFilterLimit from nostr-tools
2024-05-03 13:26:26 -05:00
Alex Gleason
091392088f
PoolStore: simplify req
2024-05-03 13:25:18 -05:00
Alex Gleason
705e8e7c31
PoolStore: implement NRelay
2024-05-03 13:23:00 -05:00
Alex Gleason
2ee668d562
Merge branch 'feat-create-reports' into 'main'
...
Create user reports through kind 1984
Closes #97
See merge request soapbox-pub/ditto!210
2024-05-03 14:25:22 +00:00
Alex Gleason
67aa31b748
Merge branch 'fix-account-not-found' into 'main'
...
Fix user not found in accountLookupController
Closes #102
See merge request soapbox-pub/ditto!213
2024-05-03 14:23:27 +00:00
P. Reis
f2f0aa8741
fix(accountLookup): fix user not found by using 'accountFromPubkey'
2024-05-03 09:52:25 -03:00
P. Reis
ca5433bcc7
refactor(reports): update code according to code review in MR 210
2024-05-02 20:21:58 -03:00
Alex Gleason
e61dd73761
Merge branch 'blocks-to-mutes' into 'main'
...
Rename blocks to mutes in the API
See merge request soapbox-pub/ditto!212
2024-05-02 20:37:15 +00:00
Alex Gleason
09c596c9e4
Add back block controllers, but 422 them
2024-05-02 15:34:17 -05:00
Alex Gleason
4c71dec6ce
Rename blocks to mutes in the API
2024-05-02 15:26:46 -05:00
Alex Gleason
b219a21a2a
Merge branch 'notifications-167' into 'main'
...
Notifications: render notifications for kinds 1, 6, and 7 events
See merge request soapbox-pub/ditto!211
2024-05-02 20:21:35 +00:00
Alex Gleason
ec7b3f8350
followController: manually set following: true in the response
2024-05-02 15:02:05 -05:00
Alex Gleason
220f16feb8
Notifications: render notifications for kinds 1, 6, and 7 events
2024-05-02 14:36:28 -05:00
P. Reis
226c356646
feat: create mastodon response for reports
2024-05-02 16:03:59 -03:00
P. Reis
23f8377231
feat: create reports controller
2024-05-02 16:03:15 -03:00
Alex Gleason
3d70edfb39
Merge branch 'P-index' into 'main'
...
EventsDB: always index the first P-tag of events
See merge request soapbox-pub/ditto!209
2024-05-02 14:57:34 +00:00
Alex Gleason
b016f931ff
EventsDB: always index the first P-tag of events
2024-05-02 09:54:24 -05:00
P. Reis
3e6600b5f5
Merge branch 'main' into feat-create-reports
...
((( Updating local branch )))
2024-05-02 09:33:59 -03:00
Alex Gleason
a7cbd452e7
Merge branch 'strip-schema' into 'main'
...
Remove zod schemas that we can get from NSchema
See merge request soapbox-pub/ditto!208
2024-05-02 00:59:06 +00:00
Alex Gleason
4045a6bdfc
Catch metadata when parsing
2024-05-01 19:55:58 -05:00
Alex Gleason
fc7ed8bf24
Remove zod schemas that we can get from NSchema
2024-05-01 19:51:12 -05:00
Alex Gleason
79177cd6c3
Merge branch 'rm-relays' into 'main'
...
Remove `relays` table from the database, track them with a NIP-65 admin event
See merge request soapbox-pub/ditto!207
2024-05-02 00:37:02 +00:00
Alex Gleason
76f30f5cc7
utils: remove unused import of zod
2024-05-01 19:19:52 -05:00
Alex Gleason
439dfca311
Fix kysely imports in migrations
2024-05-01 19:16:12 -05:00
Alex Gleason
87264eeef1
Remove relays table from the database, track them with a NIP-65 admin event
2024-05-01 19:15:20 -05:00
P. Reis
9553fce25d
Merge branch 'main' into feat-create-reports
...
(((Updating local branch)))
2024-05-01 20:56:18 -03:00
Alex Gleason
bea2dab074
Merge branch 'relays-api-update' into 'main'
...
Admin relays: use "marker" property in the API, fix PUT controller
See merge request soapbox-pub/ditto!206
2024-05-01 23:52:34 +00:00
Alex Gleason
444a6efd7d
Upgrade kysely-deno-sqlite, fix the type
2024-05-01 18:40:04 -05:00
P. Reis
e8088c9eed
feat: define reports endpoint
2024-05-01 20:38:30 -03:00
Alex Gleason
d1a4a71e31
Remove the lockfile
2024-05-01 18:30:12 -05:00
Alex Gleason
258e81df51
Admin relays: use "marker" property in the API, fix PUT controller
2024-05-01 18:29:32 -05:00
Alex Gleason
1477dc1049
Merge branch 'upgrade-zod' into 'main'
...
Bump zod to v3.23.5
See merge request soapbox-pub/ditto!205
2024-05-01 23:25:13 +00:00
Alex Gleason
984695391a
unfurl -> unfurl.js
2024-05-01 16:59:15 -05:00
Alex Gleason
d94f831af1
Bump zod to v3.23.5
2024-05-01 16:45:47 -05:00
Alex Gleason
5f5749db9b
Merge branch 'alias' into 'main'
...
Convert a bunch of deps to use aliases
See merge request soapbox-pub/ditto!204
2024-05-01 21:45:28 +00:00
Alex Gleason
8959f85afb
Fix imports of uuid62 and fast-stringify-stable
2024-05-01 16:42:07 -05:00
Alex Gleason
7de5cdc18d
@db/sqlite, scoped_performance aliases
2024-05-01 16:40:58 -05:00
Alex Gleason
08ed52a57b
formdata-helper alias
2024-05-01 16:37:01 -05:00
Alex Gleason
d1f643d7ad
secp256k1 alias
2024-05-01 16:35:39 -05:00
Alex Gleason
5a7a409981
Alias unfurl, linkifyjs etc
2024-05-01 16:34:16 -05:00
Alex Gleason
e5c8030960
Move more deps to aliases
2024-05-01 16:29:21 -05:00
Alex Gleason
ea665eed12
std/dotenv alias
2024-05-01 16:22:55 -05:00
Alex Gleason
c4d8ad2368
uuid62 alias
2024-05-01 16:21:18 -05:00
Alex Gleason
8738aeb820
tldts alias
2024-05-01 16:19:53 -05:00
Alex Gleason
c7b34ed31b
iso-639-1 alias
2024-05-01 16:18:28 -05:00
Alex Gleason
973791cde1
type-fest alias
2024-05-01 16:16:19 -05:00
Alex Gleason
3513206de1
stickynotes alias
2024-05-01 16:14:50 -05:00
Alex Gleason
9d0be2de0d
nostr-relaypool alias
2024-05-01 15:57:28 -05:00
Alex Gleason
58ed1b111f
Comlink alias
2024-05-01 15:55:56 -05:00
Alex Gleason
efd6e35065
Merge branch 'refactor-storages' into 'main'
...
First pass refactoring storages
See merge request soapbox-pub/ditto!203
2024-05-01 20:27:08 +00:00
Alex Gleason
08f0ef3cdd
Add a deno.lock again
2024-05-01 15:23:54 -05:00
Alex Gleason
c190d2c8ce
Refactor Storages to get lazy-loaded only when they are used
2024-05-01 14:56:47 -05:00
Alex Gleason
a6681a97d9
Merge branch 'kysely-alias' into 'main'
...
Make Kysely an import alias
See merge request soapbox-pub/ditto!202
2024-05-01 14:39:10 +00:00
Alex Gleason
621a632893
Update kysely imports in migrations
2024-05-01 09:36:36 -05:00
Alex Gleason
d45a1b5001
Upgrade Kysely to v0.27.3
2024-05-01 09:32:24 -05:00
Alex Gleason
4291691aa7
Make @soapbox/kysely-deno-sqlite an import alias
2024-05-01 09:27:19 -05:00
Alex Gleason
23e00b0042
Make Kysely an import alias
2024-05-01 09:26:17 -05:00
Alex Gleason
9c1760bcc0
Merge branch 'rm-cron' into 'main'
...
Remove cron.ts
See merge request soapbox-pub/ditto!201
2024-05-01 14:11:41 +00:00
Alex Gleason
caa9e47161
Remove cron.ts
2024-05-01 09:08:36 -05:00
Alex Gleason
6cc44c468e
Don't await cleanupMedia on startup
2024-04-30 20:38:21 -05:00
Alex Gleason
51d7bf4438
Merge branch 'fix-block-not-working-in-streaming' into 'main'
...
Don't show posts from blocked users (fix streaming)
Closes #95
See merge request soapbox-pub/ditto!200
2024-05-01 01:03:49 +00:00
P. Reis
de08aeac10
fix: allow to query kind 0 of blocked users
2024-04-30 21:28:45 -03:00
P. Reis
2b605d2ac3
Merge branch 'main' into fix-block-not-working-in-streaming
...
(((Updating local branch)))
2024-04-30 21:23:44 -03:00
P. Reis
f0c66c1e92
fix(streaming): don't show posts from blocked users
2024-04-30 21:23:25 -03:00
P. Reis
e8e45360d3
refactor(store middleware): get adminStore through function
2024-04-30 21:21:32 -03:00
P. Reis
ba6d33c115
feat: create getAdminStore() func
2024-04-30 21:20:19 -03:00
Alex Gleason
c2608f9b11
Merge branch 'nostr-tools-alias' into 'main'
...
Move nostr-tools to an import alias
See merge request soapbox-pub/ditto!199
2024-04-30 23:48:34 +00:00
Alex Gleason
0bb4ccf5c9
Move nostr-tools to an import alias
2024-04-30 18:43:53 -05:00
Alex Gleason
1d3b06958b
Merge branch 'hashtag-lower' into 'main'
...
hashtagTimelineController: toLowerCase
See merge request soapbox-pub/ditto!198
2024-04-30 20:06:44 +00:00
Alex Gleason
35ab012276
hashtagTimelineController: toLowerCase
2024-04-30 14:58:00 -05:00
Alex Gleason
19ba7e74d6
Merge branch 'admin-blocks' into 'main'
...
storeMiddleware: pass through admin UserStore
See merge request soapbox-pub/ditto!197
2024-04-30 18:49:11 +00:00
Alex Gleason
d22c606960
storeMiddleware: pass through admin UserStore
2024-04-30 13:27:30 -05:00
Alex Gleason
1ed700d7f9
Merge branch 'rm-toucan' into 'main'
...
Remove hono/sentry middleware, upgrade @sentry/deno
See merge request soapbox-pub/ditto!196
2024-04-30 18:11:52 +00:00
Alex Gleason
18a3d0f9ad
Switch back to @sentry/deno from deno.land
2024-04-30 13:09:01 -05:00
Alex Gleason
f2b36f75f0
Remove hono/sentry middleware, upgrade @sentry/deno
2024-04-30 13:01:43 -05:00
Alex Gleason
e722e754cd
deno lint
2024-04-30 12:55:39 -05:00
Alex Gleason
f651bf416a
sentry: skip "no pubkey provided" error
2024-04-30 12:52:20 -05:00
Alex Gleason
9ecf5db1b1
hono: catch HTTPException
2024-04-30 12:46:29 -05:00
Alex Gleason
0e6b4e8b45
sentryMiddleware: ignore HTTPException errors
2024-04-30 12:37:27 -05:00
Alex Gleason
d1b2e26abf
Merge branch 'refactor-get-descendants' into 'main'
...
Convert getDescendants to async function
See merge request soapbox-pub/ditto!195
2024-04-30 14:42:24 +00:00
P. Reis
d99fd753ee
refactor(queries): convert getDescendants to async function
2024-04-30 11:18:20 -03:00
Alex Gleason
36aaf79a74
Merge branch 'local-uploader' into 'main'
...
Add localUploader
See merge request soapbox-pub/ditto!194
2024-04-29 21:31:38 +00:00
Alex Gleason
303b0fe098
Add localUploader
2024-04-29 16:28:54 -05:00
Alex Gleason
22064f86aa
Merge branch 's3-path' into 'main'
...
S3: support pathStyle
See merge request soapbox-pub/ditto!193
2024-04-29 21:08:28 +00:00
Alex Gleason
7ada849a6a
s3: support pathStyle
2024-04-29 16:05:36 -05:00
Alex Gleason
c786e1bc55
Uploader: make second argument an options object
2024-04-29 15:32:18 -05:00
Alex Gleason
25db277a9f
storeMiddleware: remove as string
2024-04-29 15:10:08 -05:00
Alex Gleason
8902dc28c1
Merge branch 'app-store' into 'main'
...
Make storeMiddleware available in every request
See merge request soapbox-pub/ditto!192
2024-04-29 20:08:39 +00:00
Alex Gleason
0925f37929
Make storeMiddleware available in every request
2024-04-29 15:05:08 -05:00
P. Reis
bb82df14c6
refactor: user preference in create & verify credentials
2024-04-29 13:49:12 -03:00
P. Reis
6627704114
feat: save user preferences (kind 30078) & encrypt it
2024-04-28 17:07:41 -03:00
Alex Gleason
61e648ff31
Merge branch 'mentions-perf' into 'main'
...
Improve mentions performance
See merge request soapbox-pub/ditto!190
2024-04-28 17:16:01 +00:00
Alex Gleason
1ea5591393
Improve mentions performance
2024-04-28 12:12:58 -05:00
Alex Gleason
42bbc09a91
Merge branch 'feat-store-middleware' into 'main'
...
Create User Store middleware and use it in required endpoints
See merge request soapbox-pub/ditto!189
2024-04-28 01:45:17 +00:00
P. Reis
86573a579b
refactor: store middleware
2024-04-27 20:59:35 -03:00
P. Reis
ab7a60c6de
fix(UserStore): add missing return keyword in array filter
2024-04-27 17:04:14 -03:00
P. Reis
a7912e0800
feat: if possible use userStore in renderStatuses()
2024-04-27 17:03:30 -03:00
P. Reis
18508d37f2
feat: define userStore in HonoEnv & set userStore middleware in home timeline
2024-04-27 17:02:07 -03:00
P. Reis
7b864482bf
feat: create user store middleware
2024-04-27 17:00:03 -03:00
Alex Gleason
606ab58c0a
UserStore.test: use MockRelay
2024-04-26 15:39:28 -05:00
Alex Gleason
7e053fbeea
Merge branch 'feat-create-user-store' into 'main'
...
Create a UserStore class
See merge request soapbox-pub/ditto!184
2024-04-26 20:33:01 +00:00
P. Reis
8a460d6bc5
test: create rough tests for UserStore
2024-04-26 16:23:10 -03:00
P. Reis
2d9db61deb
test: kind 10000 ('black' blocks 'me') fixture
2024-04-26 16:12:13 -03:00
P. Reis
ad928eec9b
test: kind 0 (user 'black') fixture
2024-04-26 16:09:56 -03:00
P. Reis
2b8ad8c349
Merge branch 'main' into feat-create-user-store
2024-04-26 16:06:10 -03:00
P. Reis
c87db6d1f8
refactor: remove muteList as a field
2024-04-26 16:05:53 -03:00
Alex Gleason
edbe3395b3
Merge branch 'nostrify-15' into 'main'
...
Upgrade Nostrify to v0.15, use MockRelay in tests instead of NCache
See merge request soapbox-pub/ditto!188
2024-04-26 17:36:57 +00:00
Alex Gleason
f61d29eb66
Upgrade Nostrify to v0.15, use MockRelay in tests instead of NCache
2024-04-26 12:33:52 -05:00
Alex Gleason
f3bc12252a
Merge branch 'refactor-subs' into 'main'
...
Add full NIP-46 signer from Nostrify
See merge request soapbox-pub/ditto!185
2024-04-26 03:04:17 +00:00
Alex Gleason
9496917be1
Upgrade Nostrify
2024-04-25 21:45:26 -05:00
Alex Gleason
498e91ee7c
Merge remote-tracking branch 'origin/main' into refactor-subs
2024-04-25 21:27:57 -05:00
Alex Gleason
fae289486c
Merge branch 'internal-relay-push' into 'main'
...
InternalRelay: fix event distribution
See merge request soapbox-pub/ditto!187
2024-04-26 02:12:12 +00:00
Alex Gleason
f1700a08f9
InternalRelay: fix event distribution
2024-04-25 21:04:34 -05:00
Alex Gleason
b04d0c42e6
Merge remote-tracking branch 'origin/main' into refactor-subs
2024-04-25 19:04:01 -05:00
Alex Gleason
d8475e1b14
Merge branch 'internal-relay' into 'main'
...
Replace old subscription store with an InternalRelay class
See merge request soapbox-pub/ditto!186
2024-04-26 00:01:27 +00:00
Alex Gleason
4e4b7711c9
relay: NSchema
2024-04-25 18:48:02 -05:00
Alex Gleason
7ee258fe87
relay: fix local filtering logic
2024-04-25 18:46:34 -05:00
Alex Gleason
333dfca270
Storages: typofix subsub -> pubsub
2024-04-25 18:31:16 -05:00
Alex Gleason
05534d532b
APISigner: refactor with InternalRelay
2024-04-25 18:28:19 -05:00
Alex Gleason
7aa931a69e
try-catch the InternalRelay req's
2024-04-25 18:24:03 -05:00
Alex Gleason
7a18a19b2f
Remove subs.ts & subscription.ts, refactor around it
2024-04-25 18:23:26 -05:00
P. Reis
ddc84bf47a
refactor(UserStore): change fields to private & handle in case of muteList undefined
2024-04-25 18:43:12 -03:00
Alex Gleason
60ca3652bb
try-catch the InternalRelay req's
2024-04-25 16:36:20 -05:00
P. Reis
6c292b8da4
feat: create UserStore class
2024-04-25 16:41:40 -03:00
Alex Gleason
f33ad04084
Remove subs.ts & subscription.ts, refactor around it
2024-04-25 13:18:35 -05:00
Alex Gleason
fc47116dd3
APISigner: reimplement with NConnectSigner and InternalRelay
2024-04-25 12:32:39 -05:00
Alex Gleason
8407583d83
Add InternalRelay class
2024-04-25 11:54:25 -05:00
Alex Gleason
e8c2c175af
Merge branch 'media-role' into 'main'
...
Unrestrict media uploads
See merge request soapbox-pub/ditto!183
2024-04-25 00:25:25 +00:00
Alex Gleason
677720f15e
Unrestrict media uploads
2024-04-24 19:22:36 -05:00
Alex Gleason
620fd6bb74
Merge branch 'configurable-local-port' into 'main'
...
Allow configuring the local port ditto listens on
See merge request soapbox-pub/ditto!181
2024-04-24 17:22:58 +00:00
Alex Gleason
953295c534
server.ts: Conf.localPort -> Conf.port
2024-04-24 16:26:56 +00:00
Siddharth Singh
58b034e169
rename DITTO_LISTEN_ON and localPort() to PORT and port()
2024-04-24 21:38:05 +05:30
Siddharth Singh
3880f1e013
allow configuring the local port ditto listens on
2024-04-24 21:32:02 +05:30
Alex Gleason
2bffb667c4
Merge branch 'hydrate-again' into 'main'
...
Rewrite hydrateEvents again
See merge request soapbox-pub/ditto!180
2024-04-24 02:49:40 +00:00
Alex Gleason
1f5ba81e98
hydrateEvents: early return is only needed for stats?
2024-04-23 21:40:02 -05:00
Alex Gleason
a2c3daade7
hydrateEvents: return early if the results would be empty
2024-04-23 21:32:48 -05:00
Alex Gleason
b8d01ea3de
hydrateEvents: use filters to find events in memory
2024-04-23 21:10:21 -05:00
Alex Gleason
b2ef87c5b5
Merge branch 'admin-cli' into 'main'
...
Add admin:event and admin:role CLI tasks
See merge request soapbox-pub/ditto!179
2024-04-24 01:19:36 +00:00
Alex Gleason
443cede73e
Merge branch 'admin-relay-api' into 'main'
...
Add an API to manage admin relays
See merge request soapbox-pub/ditto!178
2024-04-24 01:14:24 +00:00
Alex Gleason
a1423bbf65
Fix hydrateEvents, lol
2024-04-23 20:11:07 -05:00
Alex Gleason
191b370c85
hydrate.test: remove unnecessary boilerplate
2024-04-23 19:50:23 -05:00
Alex Gleason
0aab3eb775
Rewrite hydrateEvents
2024-04-23 19:31:48 -05:00
Alex Gleason
cbf1e8f280
Add admin:role CLI task
2024-04-23 18:13:18 -05:00
Alex Gleason
b73b964fda
Add a better admin:event script
2024-04-23 17:32:24 -05:00
Alex Gleason
3204b61f0b
Add an API to manage admin relays
2024-04-23 16:21:36 -05:00
Alex Gleason
5d84566385
Merge branch 'perf-hydrate-events' into 'main'
...
Performance: hydrate events makes up to 5 calls to database
See merge request soapbox-pub/ditto!175
2024-04-23 20:24:55 +00:00
P. Reis
58d75d1939
fix: hydrate events stats and author stats with filter by kind
2024-04-23 17:19:34 -03:00
Alex Gleason
6c74ce9c12
Merge branch 'zod-alias' into 'main'
...
zod import alias
See merge request soapbox-pub/ditto!177
2024-04-23 20:07:45 +00:00
P. Reis
5fca482e5c
refactor(hydrate events): change array to Map
2024-04-23 17:04:05 -03:00
Alex Gleason
0f9cc9fe51
zod import alias
2024-04-23 15:03:20 -05:00
Alex Gleason
3557102b08
deno.json: simplify unstable support (and enable Deno.Kv)
2024-04-23 01:36:03 -05:00
Alex Gleason
a53a21ffcf
pipeline: print policy result
2024-04-23 01:29:18 -05:00
Alex Gleason
e5dd4c587c
Merge branch 'policy-plugin' into 'main'
...
Load a custom policy from data/policy.ts
See merge request soapbox-pub/ditto!176
2024-04-23 06:14:42 +00:00
Alex Gleason
69178ae523
Load a custom policy from data/policy.ts
2024-04-23 01:11:37 -05:00
P. Reis
7a12e5ec7b
test: rough adapt tests for new performance hydratation
2024-04-22 22:15:41 -03:00
P. Reis
c7b84e5438
test: kind 6 fixture
2024-04-22 22:15:41 -03:00
P. Reis
51f24fed87
test: kind 1 (normal post) fixture
2024-04-22 22:15:41 -03:00
P. Reis
351d81f2c8
test: kind 1 (quote repost) fixture
2024-04-22 22:15:41 -03:00
P. Reis
90eb6ede2b
test: kind 0 (user 'me') fixture
2024-04-22 22:15:41 -03:00
P. Reis
062e21e8a8
test: remove 'hydrate quote repost WITHOUT hydrate author'
2024-04-22 22:15:41 -03:00
P. Reis
b77c8a00cd
perf: make up to 5 calls to database in hydrateEvents & remove old hydrate functions
2024-04-22 22:15:36 -03:00
Alex Gleason
ed08ac7c17
Merge branch 'feat-search-account-with-no-kind-0' into 'main'
...
Render account from pubkey if kind 0 is not present in database
See merge request soapbox-pub/ditto!173
2024-04-21 01:44:16 +00:00
P. Reis
12b030c8aa
refactor: decode pubkey with right import in search account
2024-04-20 21:52:36 -03:00
P. Reis
49f06869a3
feat: render account from pubkey if no kind 0 exists - /v2/search
2024-04-20 21:26:05 -03:00
P. Reis
60a1ff7adc
feat: render account from pubkey if no kind 0 exists - /v1/accounts/search
2024-04-20 21:03:17 -03:00
Alex Gleason
1c126425ac
Merge branch 'hono-alias' into 'main'
...
Import hono with an import alias
See merge request soapbox-pub/ditto!172
2024-04-20 23:57:43 +00:00
Alex Gleason
64d50552b7
Import hono with an import alias
2024-04-20 18:54:15 -05:00
Alex Gleason
270dbab456
Merge branch 'appcontroller-type' into 'main'
...
Fix type of AppController
See merge request soapbox-pub/ditto!171
2024-04-20 23:53:03 +00:00
Alex Gleason
505a9bced1
Fix type of AppController
2024-04-20 18:47:34 -05:00
Alex Gleason
ad33fec129
Merge branch 'postgresql' into 'main'
...
DittoDB: support `postgresql:` protocol
See merge request soapbox-pub/ditto!170
2024-04-20 02:23:34 +00:00
Alex Gleason
0ddb1782e5
DittoDB: support postgresql: protocol
2024-04-19 21:20:35 -05:00
Alex Gleason
aeaa236518
Merge branch 'postgres' into 'main'
...
Support Postgres
See merge request soapbox-pub/ditto!167
2024-04-20 02:13:08 +00:00
Alex Gleason
80e554a5c9
Update deno.json imports
2024-04-19 21:08:13 -05:00
Alex Gleason
9ccf6bbea0
Mold the things to work with Postgres
2024-04-19 20:52:42 -05:00
Alex Gleason
b87a59c521
Merge remote-tracking branch 'origin/main' into postgres
2024-04-19 18:32:02 -05:00
Alex Gleason
9632b5cc96
Merge branch 'refactor-utils-import' into 'main'
...
refactor(utils): resolve import specifier via the active import map
See merge request soapbox-pub/ditto!169
2024-04-19 22:55:22 +00:00
P. Reis
bbe8df8217
refactor(utils): resolve import specifier via the active import map
2024-04-19 19:46:42 -03:00
Alex Gleason
11e81f0000
Merge branch 'nostrify' into 'main'
...
Switch NSpec to Nostrify, update imports
See merge request soapbox-pub/ditto!168
2024-04-19 21:42:17 +00:00
Alex Gleason
9c91e41e87
Switch NSpec to Nostrify, update imports
2024-04-19 16:39:35 -05:00
Alex Gleason
450acddc32
Remove pragma.ts
2024-04-19 15:34:05 -05:00
Alex Gleason
2e41254507
Add Postgres adapter
2024-04-19 15:17:09 -05:00
Alex Gleason
3753648f99
Use new DittoDB module, rename old interface to DittoTables
2024-04-19 12:26:15 -05:00
Alex Gleason
4085443e45
Add DittoDB module for selecting a database depending on the DATABASE_URL
2024-04-19 12:21:32 -05:00
Alex Gleason
29102d272a
Add DittoSQLite module
2024-04-19 12:16:48 -05:00
Alex Gleason
f6945ecd1c
Merge branch 'revert-53bee767' into 'main'
...
Revert "Merge branch 'rework-cache' into 'main'"
See merge request soapbox-pub/ditto!166
2024-04-19 14:40:14 +00:00
Alex Gleason
1cb53bdb84
Revert "Merge branch 'rework-cache' into 'main'"
...
This reverts merge request !156
2024-04-19 14:37:53 +00:00
Alex Gleason
dd3604908b
Merge branch 'fix-reblogged-always-on' into 'main'
...
Fix reblogged always on problem
See merge request soapbox-pub/ditto!165
2024-04-19 14:21:10 +00:00
P. Reis
e2b377d9c7
fix: reblogged field boolean value takes into account viewerPubkey
2024-04-19 11:12:11 -03:00
P. Reis
ae5fe1e0ac
fix: hydrate event_stats in hydrateRepostEvents()
2024-04-19 10:23:34 -03:00
Alex Gleason
6555675ef3
Merge branch 'database-url' into 'main'
...
Introduce DATABASE_URL
See merge request soapbox-pub/ditto!164
2024-04-19 03:14:53 +00:00
Alex Gleason
e458f8da13
Introduce DATABASE_URL
2024-04-18 22:11:58 -05:00
Alex Gleason
134473bf9f
Merge branch 'improv-test-coverage' into 'main'
...
Improve code coverage in quote repost hydration
See merge request soapbox-pub/ditto!162
2024-04-18 15:08:33 +00:00
P. Reis
7dd6378717
test: improv code coverage in quote repost hydration
2024-04-18 11:30:49 -03:00
Alex Gleason
c62c31a171
updateStats: await getStatsDiff
2024-04-17 22:58:25 -05:00
Alex Gleason
a07d018ea6
Merge branch 'fix-create-status-quote-repost' into 'main'
...
Fix response when creating a status with quote repost
See merge request soapbox-pub/ditto!160
2024-04-16 18:23:35 +00:00
P. Reis
e19e41f826
fix: always populate quote_id if possible
2024-04-16 15:16:18 -03:00
P. Reis
e4892c3e4a
fix: response with quote field hydrated in create status
2024-04-16 14:44:04 -03:00
Alex Gleason
97d2fa1b79
Merge branch 'feature-quote-repost' into 'main'
...
Add quote repost feature
See merge request soapbox-pub/ditto!159
2024-04-16 16:57:24 +00:00
P. Reis
a00a932ec1
refactor: deno fmt in hydrate test
2024-04-16 13:53:00 -03:00
P. Reis
ed92001b75
test: fix so copied object is used instead of original object
2024-04-16 13:41:32 -03:00
P. Reis
3219b53682
test: add test for hydrate quote repost without author & fix tests' parallelism problem
2024-04-16 13:25:43 -03:00
P. Reis
a1ce77ef3e
test: add events in fixtures dir
2024-04-16 10:45:30 -03:00
P. Reis
4a9232faf7
test: add test for hydrate quote repost
2024-04-16 09:31:03 -03:00
P. Reis
d5007162e4
refactor(hydrate): remove empty lines
2024-04-15 17:25:18 -03:00
P. Reis
a993051439
refactor: pass abort signal in hydrateRepostEvents
2024-04-15 17:19:37 -03:00
P. Reis
6248272243
feat: add quote repost
2024-04-15 17:19:37 -03:00
Alex Gleason
b54d044550
Merge branch 'refactor-hydrate-repost' into 'main'
...
refactor: hydrate authors through hydrateEvents() call
See merge request soapbox-pub/ditto!158
2024-04-15 13:52:58 +00:00
P. Reis
e77fd7d48b
refactor: hydrate authors through hydrateEvents() call
2024-04-15 10:49:10 -03:00
Alex Gleason
220bbeaba8
Merge branch 'test-hydrate' into 'main'
...
Add tests for hydrate repost and hydrate author
See merge request soapbox-pub/ditto!157
2024-04-15 13:36:05 +00:00
P. Reis
b9c1d0c5fb
refactor(hydrate test): cast event as DittoEvent instead of any
2024-04-14 22:44:37 -03:00
P. Reis
b79f8bef30
test: add test for hydrate repost
2024-04-14 21:02:57 -03:00
P. Reis
dd53a111db
test: add test to hydrate authors
2024-04-14 19:03:38 -03:00
P. Reis
f9831ba74a
refactor(events-db-test): resolve import specifier via the active import map
2024-04-14 10:32:22 -03:00
Alex Gleason
fe6b42211c
Merge branch 'perf-hydrate-repost' into 'main'
...
Perf hydrate repost
See merge request soapbox-pub/ditto!154
2024-04-13 21:37:54 +00:00
P. Reis
15853d79df
refactor: remove kind 1 event from hydrateEvents in reblog controller
2024-04-13 18:31:30 -03:00
P. Reis
37bee709cd
perf: hydrate repost events in reblog endpoint & streaming
2024-04-13 18:16:15 -03:00
Alex Gleason
53bee767f9
Merge branch 'rework-cache' into 'main'
...
Rework cache
See merge request soapbox-pub/ditto!156
2024-04-13 19:39:13 +00:00
Alex Gleason
ff3d8e3f90
cache: use the old response body to prevent memory leaks
2024-04-13 14:36:31 -05:00
Alex Gleason
afed0a0b34
cache: serve stale response
2024-04-13 14:34:37 -05:00
Alex Gleason
6ab3a640bf
Rework cache middleware to use in-memory cache, remove ExpiringCache module
2024-04-13 14:00:21 -05:00
Alex Gleason
a738ed3d4d
Merge branch 'instance-cache' into 'main'
...
Cache /api/v1/instance for 5 minutes
See merge request soapbox-pub/ditto!155
2024-04-13 18:30:40 +00:00
Alex Gleason
6aa877d930
Cache /api/v1/instance for 5 minutes
2024-04-13 13:28:08 -05:00
P. Reis
24efca5ea0
perf: hydrate repost event in home timeline
2024-04-12 21:51:57 -03:00
P. Reis
581ecd67d6
refactor(server): resolve import specifier via the active import map
2024-04-12 21:34:32 -03:00
P. Reis
0f4c76c761
refactor(fetch test): resolve import specifier via the active import map
2024-04-12 14:26:45 -03:00
Alex Gleason
a05b0dc473
Merge branch 'feat-support-quote-repost' into 'main'
...
feat: add support for quote repost
See merge request soapbox-pub/ditto!153
2024-04-12 17:10:44 +00:00
P. Reis
073a3df17e
feat: add support for quote repost
2024-04-12 14:07:22 -03:00
Alex Gleason
7c14a2d5ef
Merge branch 'fix-repost-counter' into 'main'
...
fix: repost counter works when undo repost
See merge request soapbox-pub/ditto!151
2024-04-11 14:45:13 +00:00
P. Reis
3ebcf7ea25
refactor: undo repost counter in getStatsDiff
2024-04-11 09:53:24 -03:00
P. Reis
cdb0d817ed
fix: repost counter works when undo repost
2024-04-10 19:15:24 -03:00
Alex Gleason
bff8c62572
Merge branch 'feat-undo-repost' into 'main'
...
feat: undo repost
See merge request soapbox-pub/ditto!150
2024-04-10 13:20:15 +00:00
P. Reis
10e3def9d5
docs: mark repost feature as completed
2024-04-09 20:43:03 -03:00
P. Reis
9f24f35a21
refactor: cast pubkey as string
2024-04-09 20:32:27 -03:00
Alex Gleason
a63dc8be4e
Apply 2 suggestion(s) to 1 file(s)
2024-04-09 22:08:37 +00:00
P. Reis
7e8401688c
feat: undo repost
2024-04-09 18:27:17 -03:00
Alex Gleason
e1e07de435
Merge branch 'refactor-resolve-import' into 'main'
...
refactor(interfaces): resolve import specifier via the active import map
See merge request soapbox-pub/ditto!149
2024-04-09 18:16:10 +00:00
P. Reis
11f668dc8c
refactor(interfaces): resolve import specifier via the active import map
2024-04-09 15:08:07 -03:00
Alex Gleason
76878d9dc8
Merge branch 'fix-streaming-update' into 'main'
...
fix: always update home timeline in real time when reposting
See merge request soapbox-pub/ditto!148
2024-04-09 14:38:55 +00:00
P. Reis
dd307f5b3f
fix: always update home timeline in realtime when reposting
2024-04-09 11:35:18 -03:00
Alex Gleason
2169f8f26a
Merge branch 'fix-find-event' into 'main'
...
fix: find event and not pubkey in renderReblog
See merge request soapbox-pub/ditto!146
2024-04-09 14:29:57 +00:00
Alex Gleason
06ca3706b8
Apply 1 suggestion(s) to 1 file(s)
2024-04-09 14:27:41 +00:00
P. Reis
846c8824d4
Merge branch 'main' into 'fix-find-event'
...
# Conflicts:
# src/views/mastodon/statuses.ts
2024-04-08 18:46:11 +00:00
Alex Gleason
b8cce3b309
Merge branch 'fix-types' into 'main'
...
Fix types
See merge request soapbox-pub/ditto!147
2024-04-08 16:41:16 +00:00
Alex Gleason
9bfed222da
unfurlCard: fix types
2024-04-08 11:38:59 -05:00
Alex Gleason
57b0224517
renderReblog: fix types
2024-04-08 11:34:21 -05:00
Alex Gleason
bc33f270d0
gitlab-ci: check types
2024-04-08 11:33:28 -05:00
P. Reis
0da9d2e3f4
fix: find event and not pubkey in renderReblog
2024-04-08 13:28:30 -03:00
Alex Gleason
70a29a74fb
Merge branch 'repost-feat' into 'main'
...
feat: repost functionality
See merge request soapbox-pub/ditto!133
2024-04-08 15:54:43 +00:00
Alex Gleason
d7d52bbdee
Apply 1 suggestion(s) to 1 file(s)
2024-04-08 15:53:08 +00:00
Alex Gleason
1f7a4664ec
Apply 2 suggestion(s) to 2 file(s)
2024-04-08 15:49:35 +00:00
Alex Gleason
43c25055db
Merge branch 'avoid-count' into 'main'
...
Avoid EventDB.count for single row fetches
See merge request soapbox-pub/ditto!145
2024-04-08 15:45:31 +00:00
Alex Gleason
595d5a4117
Avoid EventDB.count for single row fetches
2024-04-08 10:43:26 -05:00
Alex Gleason
9024ec8655
Merge branch 'perf-log-params' into 'main'
...
SqliteWorker: log query parameters
See merge request soapbox-pub/ditto!143
2024-04-08 14:24:06 +00:00
Alex Gleason
2fb2b2ce2a
SqliteWorker: log query parameters
2024-04-08 09:13:20 -05:00
Alex Gleason
96887483e8
Merge branch 'perf-enabled' into 'main'
...
SqliteWorker: only call perf functions when debugging is enabled
See merge request soapbox-pub/ditto!142
2024-04-08 13:52:57 +00:00
Alex Gleason
4e999d0f39
SqliteWorker: only call perf functions when debugging is enabled
2024-04-08 08:51:04 -05:00
Alex Gleason
f17e5d57f9
Merge branch 'perf-clear' into 'main'
...
SqliteWorker: clear performance marks & measures
See merge request soapbox-pub/ditto!141
2024-04-08 13:39:37 +00:00
Alex Gleason
8185843f12
SqliteWorker: clear performance marks & measures
2024-04-08 08:37:37 -05:00
P. Reis
d8a471272d
feat: update home timeline in realtime when reposting
2024-04-07 20:37:54 -03:00
P. Reis
25b1e7229c
fix: stop home timeline hanging/loading when no posts are available
2024-04-07 20:26:47 -03:00
Alex Gleason
be12e5234b
Merge branch 'unfurl-6.4.0' into 'main'
...
Upgrade unfurl to v6.4.0
See merge request soapbox-pub/ditto!140
2024-04-07 03:27:50 +00:00
Alex Gleason
0bac971818
Upgrade unfurl to v6.4.0
2024-04-06 21:44:17 -05:00
Alex Gleason
bff7667298
Merge branch 'is-local' into 'main'
...
renderAccount: add pleroma.is_local parameter
See merge request soapbox-pub/ditto!139
2024-04-07 02:27:00 +00:00
Alex Gleason
49c9b0eff9
renderAccount: add pleroma.is_local parameter
2024-04-06 21:12:48 -05:00
P. Reis
25fcd04d9f
fix: deno fmt
2024-04-06 23:12:30 -03:00
P. Reis
ba08958b30
feat: attempt to delete repost if original post is deleted
2024-04-06 22:32:39 -03:00
Alex Gleason
d408b2000d
Merge branch 'external-uri' into 'main'
...
Allow setting external URI on statuses
See merge request soapbox-pub/ditto!138
2024-04-07 00:38:15 +00:00
Alex Gleason
7860a0e3c2
Allow setting external URI on statuses
2024-04-06 19:36:12 -05:00
Alex Gleason
9841c1767d
Merge branch 'create-status-text' into 'main'
...
Create status text: mentions and hashtags
See merge request soapbox-pub/ditto!137
2024-04-07 00:23:18 +00:00
Alex Gleason
b031224fe5
createStatusController: parse hashtags in text
2024-04-06 19:15:59 -05:00
Alex Gleason
7e7cf1df64
createStatusController: parse mentions in text
2024-04-06 18:51:37 -05:00
Alex Gleason
9a683fa932
Merge branch 'account-search' into 'main'
...
accountSearchController: utilize the searchStore
See merge request soapbox-pub/ditto!136
2024-04-06 19:58:44 +00:00
Alex Gleason
215d184808
accountSearchController: utilize the searchStore
2024-04-06 14:56:48 -05:00
Alex Gleason
2033d8d743
Merge branch 'readme-mvp' into 'main'
...
README: remove ActivityPub language, make it more closely match our 1.0 vision
See merge request soapbox-pub/ditto!135
2024-04-06 16:05:32 +00:00
Alex Gleason
2ac2c2a978
README: remove ActivityPub language, make it more closely match our 1.0 vision
2024-04-06 11:02:35 -05:00
Alex Gleason
ec32c0fa23
Merge branch 'pubkey-domain-updated' into 'main'
...
Add last_updated_at column to pubkey_domains
See merge request soapbox-pub/ditto!134
2024-04-06 03:10:00 +00:00
Alex Gleason
c0c586b364
Add last_updated_at column to pubkey_domains
2024-04-05 21:48:59 -05:00
P. Reis
bd5899029e
refactor: deno fmt
2024-04-05 19:52:29 -03:00
P. Reis
178a3c4d0e
feat: repost functionality
2024-04-05 19:44:12 -03:00
Alex Gleason
8801debb1a
Merge branch 'rm-x-nostr-sign' into 'main'
...
Remove X-Nostr-Sign header support
See merge request soapbox-pub/ditto!132
2024-04-05 22:42:31 +00:00
Alex Gleason
55ba4a3a9b
Remove X-Nostr-Sign header support
2024-04-05 17:40:42 -05:00
Alex Gleason
4b2b658685
Fix type errors
2024-04-05 14:18:46 -05:00
Alex Gleason
0ae4c21876
Merge branch 'fix-event-deconstruct' into 'main'
...
fix(queries): event deconstruct inside getEvent
See merge request soapbox-pub/ditto!131
2024-04-04 20:31:35 +00:00
P. Reis
d688e64219
fix(queries): event deconstruct inside getEvent
2024-04-04 17:27:52 -03:00
Alex Gleason
f7c39912c2
Merge branch 'refactor-active-import-map' into 'main'
...
refactor: resolve import specifier via the active import map
See merge request soapbox-pub/ditto!130
2024-04-03 22:47:49 +00:00
P. Reis
2113c73f09
refactor: resolve import specifier via the active import map
2024-04-03 19:39:06 -03:00
Alex Gleason
417ff4ec59
Merge branch 'fix-event-deconstruct' into 'main'
...
fix: event deconstruct inside getAuthor
See merge request soapbox-pub/ditto!129
2024-04-03 21:07:56 +00:00
P. Reis
152e06ce3c
fix: event deconstruct inside getAuthor
2024-04-03 18:05:07 -03:00
Alex Gleason
8c18a284b7
Merge branch 'outbox' into 'main'
...
Deliver API events to outbox relays
See merge request soapbox-pub/ditto!127
2024-04-03 01:27:37 +00:00
Alex Gleason
5e834d2a6b
pipeline: remove broadcast function
2024-04-02 19:53:11 -05:00
Alex Gleason
d577c51c74
PoolStore: don't publish to own relay
2024-04-02 19:36:40 -05:00
Alex Gleason
4e54589c09
Deliver API events to outbox relays
2024-04-02 18:29:26 -05:00
Alex Gleason
b2f2240d93
Merge branch 'accounts-user' into 'main'
...
renderAccount: stop calling findUser, rely on event hydration
Closes #86
See merge request soapbox-pub/ditto!126
2024-03-31 04:42:49 +00:00
Alex Gleason
957a82ce51
hydrateEvents: handle hydrating users
2024-03-30 23:39:06 -05:00
Alex Gleason
21bec6b131
pipeline: call hydrateEvents from hydrateEvent
2024-03-30 23:38:48 -05:00
Alex Gleason
c71d3f9d3c
renderAccount: stop calling findUser, rely on event hydration
2024-03-30 23:25:12 -05:00
Alex Gleason
1549398f83
Merge branch 'config-class' into 'main'
...
Make Conf a static class, cache pubkey
See merge request soapbox-pub/ditto!125
2024-03-31 04:12:55 +00:00
Alex Gleason
d103d0f1d6
Make Conf a static class, cache pubkey
2024-03-30 22:56:09 -05:00
Alex Gleason
eb0f7f91b1
Merge branch 'relationships-pubkey' into 'main'
...
/api/v1/relationships: requirePubkey
See merge request soapbox-pub/ditto!124
2024-03-30 23:35:56 +00:00
Alex Gleason
d9cbbe2074
/api/v1/relationships: requirePubkey
2024-03-30 18:32:54 -05:00
Alex Gleason
fef1cf258d
Merge branch 'nsec-script' into 'main'
...
feat: script to generate an nsec
Closes #85
See merge request soapbox-pub/ditto!122
2024-03-30 23:11:06 +00:00
Alex Gleason
ed5e04f558
Merge branch 'hydrate-stats' into 'main'
...
hydrateEvents: restore stats
See merge request soapbox-pub/ditto!123
2024-03-30 22:46:33 +00:00
Alex Gleason
a106218439
hydrateEvents: restore stats
2024-03-30 17:44:17 -05:00
Alex Gleason
a3201f4f33
hydrateEvents: in -> of
2024-03-30 16:30:48 -05:00
Alex Gleason
4dfd958718
hydrateEvents: refactor a separate hydrateAuthors function
2024-03-30 16:12:48 -05:00
P. Reis
494193020e
refactor/docs: include nsec script in README and generate nsec directly
2024-03-30 18:09:37 -03:00
P. Reis
99b22ab726
refactor: nsec script
2024-03-30 17:25:41 -03:00
P. Reis
90e110b1fd
feat: script to generate an nsec
...
This fixes: https://gitlab.com/soapbox-pub/ditto/-/issues/85
2024-03-30 16:49:05 -03:00
Alex Gleason
2ff96d2403
Merge branch 'delete-status' into 'main'
...
DELETE /api/v1/statuses/:id
See merge request soapbox-pub/ditto!121
2024-03-30 19:09:03 +00:00
Alex Gleason
2a032b7b7b
DELETE /api/v1/statuses/:id
2024-03-30 13:34:18 -05:00
Alex Gleason
02af0cf06d
Merge branch 'main' into 'main'
...
docs: update running instructions
See merge request soapbox-pub/ditto!120
2024-03-29 20:28:13 +00:00
P. Reis
13f21d380b
docs: remove unnecessary step
2024-03-29 20:26:10 +00:00
P. Reis
86c3ed3963
docs: fix typo
2024-03-29 18:00:45 +00:00
P. Reis
c47c79dd3d
docs: refactor running instructions
2024-03-29 17:59:11 +00:00
P. Reis
c0858e184f
Merge branch ditto:main into main
2024-03-29 17:45:03 +00:00
Alex Gleason
ea05b07448
Merge branch 'registrations-true' into 'main'
...
Remove DITTO_REGISTRATIONS config, make registrations always open
See merge request soapbox-pub/ditto!119
2024-03-29 17:37:07 +00:00
P. Reis
919149beee
docs: update running instructions
2024-03-29 17:32:47 +00:00
Alex Gleason
d4c94ba549
Remove DITTO_ENV config, make registrations always open
2024-03-29 11:51:32 -05:00
Alex Gleason
a19f1aa6e8
NIP05 DRYer
2024-03-27 19:45:03 -05:00
Alex Gleason
435c69e6a8
nip05Cache: lookup local nip05 from direct database call
2024-03-27 18:39:50 -05:00
Alex Gleason
0cfef1cb59
sentry: tracesSampleRate 1.0
2024-03-27 18:22:50 -05:00
Alex Gleason
9842b1aedd
Remove username from user events
2024-03-27 18:11:07 -05:00
Alex Gleason
8baa9a16db
nostrController: serve names from labels
2024-03-27 15:10:13 -05:00
Alex Gleason
1e73f55c8c
Merge branch 'dvm' into 'main'
...
Add DVM module, process domain name requests
See merge request soapbox-pub/ditto!118
2024-03-27 13:35:40 +00:00
Alex Gleason
0fde577149
EventsDB: fix the tag queries bug, DVM: remove unnecessary conditional
2024-03-26 21:42:17 -05:00
Alex Gleason
29a63f262f
Log relay error, remove unnecessary DVM conditional
2024-03-26 21:10:59 -05:00
Alex Gleason
940fc7a305
Add DVM module, process domain name requests
2024-03-26 19:28:13 -05:00
Alex Gleason
e1bc55fcf4
updateCredentialsController: withSource true
2024-03-25 12:35:57 -05:00
Alex Gleason
4dd527474c
renderAccount: return the unverified nip05 raw value
2024-03-25 12:32:15 -05:00
Alex Gleason
75c277e7e8
updateCredentials: allow setting nip05 through the API, remove restrictions on update_credentials
2024-03-24 16:42:19 -05:00
Alex Gleason
cfc2f02104
EventsDB: expandFilters, greatly speed up domain timelines
...
Fixes: https://gitlab.com/soapbox-pub/ditto/-/issues/80
2024-03-22 17:55:22 -05:00
Alex Gleason
c3adafa860
EventsDB: use a subquery instead of a join
2024-03-21 19:22:40 -05:00
Alex Gleason
8bed0c17be
paginationSchema: don't set a default for until
2024-03-21 19:22:25 -05:00
Alex Gleason
ccffe3abea
streaming.ts: remove unused import of getAuthor
2024-03-20 13:49:44 -05:00
Alex Gleason
25a4384587
Hydrate event author in pipeline to relieve streaming API
2024-03-20 13:49:02 -05:00
Alex Gleason
07ebb490d2
Make streaming by domain work
2024-03-20 13:42:59 -05:00
Alex Gleason
b4c05c4ba3
publicTimelineController: support remote timelines
2024-03-20 13:23:55 -05:00
Alex Gleason
f2db6c50b8
pubkey_domains domain cannot be null
2024-03-20 13:21:34 -05:00
Alex Gleason
a8b5888e6d
pipeline: get nip05 domain correctly
2024-03-20 13:20:12 -05:00
Alex Gleason
84784cd46b
Merge branch 'nip50-domain' into 'main'
...
NIP-50 domain search
See merge request soapbox-pub/ditto!117
2024-03-20 17:57:46 +00:00
Alex Gleason
b2bc46ac57
Removed DittoFilter usages I missed earlier
2024-03-20 12:01:38 -05:00
Alex Gleason
dcd0728b19
EventsDB: fix domain test
2024-03-20 11:56:30 -05:00
Alex Gleason
ad2261a37e
Move accountLookup function into a separate module (to prevent circular dependencies)
2024-03-20 11:55:21 -05:00
Alex Gleason
c8b378ad10
Remove DittoFilter, use search instead of local
2024-03-20 11:34:04 -05:00
Alex Gleason
d17d4c846f
EventsDB: allow searching by domain
2024-03-19 22:53:06 -05:00
Alex Gleason
245cb43771
EventsDB: parse nip50 extensions
2024-03-19 22:46:54 -05:00
Alex Gleason
e2cc6132be
Track pubkey domains
2024-03-19 17:45:19 -05:00
Alex Gleason
d9056f66c6
SearchStore: switch to nspec NRelay1
2024-03-17 15:44:49 -05:00
Alex Gleason
10e2f0db9a
Bump Deno to v1.41.3
2024-03-17 15:41:10 -05:00
Alex Gleason
2a0cba55e6
streamingController: allow to connect without authorization
2024-03-16 16:44:25 -05:00
Alex Gleason
648c32986b
pipeline: remove awkward registerUser flow
2024-03-16 15:07:45 -05:00
Alex Gleason
04cdbd11c9
purifyEvent: function signature
2024-03-16 13:19:39 -05:00
Alex Gleason
09369a0122
hydrateEvent -> purifyEvent (it sounds cooler)
2024-03-16 13:19:11 -05:00
Alex Gleason
0df4ac7331
pipeline: let the people post
2024-03-16 13:16:35 -05:00
Alex Gleason
a4772c27f8
Update auth.md
2024-03-15 05:18:26 +00:00
Alex Gleason
b5dd3d5f5b
Update auth.md
2024-03-15 05:16:40 +00:00
Alex Gleason
b8c376326c
Add Authentication doc
2024-03-14 23:50:04 -05:00
Alex Gleason
3c8b5be783
pipeline: fix hydrateEvent
2024-03-12 17:09:22 -05:00
Alex Gleason
b867f6c33c
accounts: nostr.npub -> nostr.pubkey
2024-03-12 16:32:43 -05:00
Alex Gleason
45e1762b50
pipeline: handle registrations
2024-03-12 16:10:19 -05:00
Alex Gleason
0bcf81e438
Use nostr-wasm
2024-03-12 14:36:10 -05:00
Alex Gleason
e1e71be8ea
Merge branch 'timelines-hydrate' into 'main'
...
Timelines hydrate
Closes #79
See merge request soapbox-pub/ditto!116
2024-03-06 19:02:54 +00:00
Alex Gleason
8b9566d79b
Remove relations filters, switch some stuff to use optimizer (requires bravery)
2024-03-06 12:55:02 -06:00
Alex Gleason
1499f9b417
Try hydrating timelines in a separate query instead of using relations
2024-03-05 14:26:38 -06:00
Alex Gleason
07d7b3868d
Merge branch 'sqlite-perf' into 'main'
...
SQLite performance improvements
See merge request soapbox-pub/ditto!115
2024-03-03 03:49:31 +00:00
Alex Gleason
7eaa652ae9
Fix EventsDB tests
2024-03-02 21:46:23 -06:00
Alex Gleason
2972cb4b6d
Add event stats indexes
2024-03-02 21:20:43 -06:00
Alex Gleason
e4f53b3936
Soft-delete events
2024-03-02 21:11:45 -06:00
Alex Gleason
96b5ecc435
Fix dropIndex calls
2024-03-02 19:23:28 -06:00
Alex Gleason
19adb3ab44
Use composite index for tags
2024-03-02 19:21:48 -06:00
Alex Gleason
9c4301e791
getConfigs: wrap in try-catch
2024-03-02 18:08:37 -06:00
Alex Gleason
dffa70e2fe
Add missing index on kind-pubkey-created_at
2024-03-02 17:57:43 -06:00
Alex Gleason
ad59c24f77
docs: add debugging SQLite information
2024-03-02 17:53:43 -06:00
Alex Gleason
dc57415df3
SqliteWorker: log amount of time each query takes
2024-03-02 17:40:29 -06:00
Alex Gleason
d83bd463b9
Add installation doc
2024-03-01 19:40:41 -06:00
Alex Gleason
c24e1f42a6
Make Pleroma config more resilient to corrupted events
2024-02-22 11:39:11 -06:00
Alex Gleason
40c7f8b093
Downgrade Deno to v1.40.4 in GitLab CI
2024-02-21 18:28:20 -06:00
Alex Gleason
a04109298e
Upgrade Deno to v1.40.5
2024-02-21 18:17:51 -06:00
Alex Gleason
f853801461
EventsDB: index 1985 label tags
2024-02-21 15:51:48 -06:00
Alex Gleason
641d2872d8
Actually, revert anything Alby would sign to nip04 since Alby doesn't support nip44 yet
2024-02-21 14:50:26 -06:00
Alex Gleason
37e55b4e18
Merge branch 'nip44' into 'main'
...
Switch all nip04 calls to nip44
See merge request soapbox-pub/ditto!114
2024-02-21 20:41:30 +00:00
Alex Gleason
d5d642b10b
Switch all nip04 calls to nip44
2024-02-21 14:39:05 -06:00
Alex Gleason
893484cbcc
docs: tweak kind 3036 example
2024-02-21 14:29:47 -06:00
Alex Gleason
480ed69601
Add document about Mastodon API, not sure if it's helpful
2024-02-19 18:19:45 -06:00
Alex Gleason
b62d52f156
docs: change the way 30360 events will be handled
2024-02-19 16:02:26 -06:00
Alex Gleason
be3f1104db
getAndRenderAccount: render account from pubkey if not found
2024-02-19 14:20:00 -06:00
Alex Gleason
fe6dd01b68
Add ditto.is_registered property to Account
2024-02-18 10:41:18 -06:00
Alex Gleason
7a38cfbc40
Remove Sentry from SqliteWorker
...
It seems to be destroying CPU performance?
2024-02-17 14:34:38 -06:00
Alex Gleason
491c3f5125
Catch client.query calls
2024-02-14 15:25:25 -06:00
Alex Gleason
8d6f8e7d8d
Add npub to Account entity
2024-02-13 20:23:33 -06:00
Alex Gleason
ca31341e04
Fix double await
2024-02-12 13:43:03 -06:00
Alex Gleason
3de63834f2
Merge branch 'admin-crypto' into 'main'
...
Remove crypo.ts, call AdminSigner instead
See merge request soapbox-pub/ditto!113
2024-02-12 18:55:59 +00:00
Alex Gleason
2b9b005250
Remove nip04 from deps.ts
2024-02-12 12:03:19 -06:00
Alex Gleason
5961b28c36
Remove crypo.ts, call AdminSigner instead
2024-02-12 12:01:35 -06:00
Alex Gleason
d60bf9cbcc
Merge branch 'api-signer' into 'main'
...
APISigner, AdminSigner, implement NostrSigner interface
See merge request soapbox-pub/ditto!112
2024-02-12 17:56:02 +00:00
Alex Gleason
59d53c4a2f
Add APISigner and AdminSigner classes, implement NostrSigner interface
2024-02-12 11:52:05 -06:00
Alex Gleason
1e3f637358
verifySignatureWorker -> verifyEventWorker
2024-02-12 11:42:25 -06:00
Alex Gleason
dbff3fee9a
Upgrade nostr-tools to v2.1.5
2024-02-12 11:40:17 -06:00
Alex Gleason
4a423b94ca
Merge branch 'nspec-count' into 'main'
...
Upgrade NSpec, update `count` interface
See merge request soapbox-pub/ditto!111
2024-02-12 16:51:04 +00:00
Alex Gleason
cb80770fc7
Upgrade NSpec, update count interface
2024-02-12 10:48:26 -06:00
Alex Gleason
676bd04229
Switch to my fork of nostr-relaypool
2024-02-02 16:49:47 -06:00
Alex Gleason
e9d29075eb
pipeline: catch error on broadcast
2024-02-02 14:51:22 -06:00
Alex Gleason
7b7cd8b15c
autoReconnect!!
2024-02-02 14:49:27 -06:00
Alex Gleason
ae6c0e712b
NLib -> NSpec
2024-02-01 14:42:45 -06:00
Alex Gleason
828aeec6dc
Merge branch 'deno-v1.40.2' into 'main'
...
Upgrade Deno to v1.40.2
See merge request soapbox-pub/ditto!110
2024-01-31 22:48:46 +00:00
Alex Gleason
427d75751a
assert -> with
2024-01-31 16:45:50 -06:00
Alex Gleason
45e76812dc
Upgrade Deno to v1.40.2
2024-01-31 16:43:14 -06:00
Alex Gleason
ebaeb03b74
Merge branch 'stickynotes' into 'main'
...
Switch debug-js to stickynotes
See merge request soapbox-pub/ditto!109
2024-01-31 22:32:47 +00:00
Alex Gleason
62e227a181
Switch debug-js to stickynotes
2024-01-31 16:24:09 -06:00
Alex Gleason
7a8fb1ba6e
Upgrade LRUCache and NLib
2024-01-25 15:48:05 -06:00
Alex Gleason
57e9534552
Zaps: dehydrate event before passing into LNURL callback
2024-01-24 15:47:19 -06:00
Alex Gleason
b4735d1dd3
cleanEvent -> dehydrateEvent
2024-01-24 15:46:45 -06:00
Alex Gleason
e847c86ff3
Delete unused scripts/db.ts
2024-01-24 11:43:32 -06:00
Alex Gleason
40f75f681b
Merge branch 'rm-memorelay' into 'main'
...
Get rid of unnecessary memorelay module, replace with NCache
See merge request soapbox-pub/ditto!108
2024-01-23 23:53:10 +00:00
Alex Gleason
0fc8143889
Get rid of unnecessary memorelay module, replace with NCache
2024-01-23 17:50:33 -06:00
Alex Gleason
2369030ff0
Upgrade NLib, remove unnecessary generics
2024-01-23 17:18:44 -06:00
Alex Gleason
ea8df5b791
Merge branch 'api-signal' into 'main'
...
Pass Request signal down from API controllers
See merge request soapbox-pub/ditto!107
2024-01-23 22:02:32 +00:00
Alex Gleason
5b24b7ad39
Pass Request signal down from API controllers
2024-01-23 15:58:59 -06:00
Alex Gleason
152c52427a
Merge branch 'nstore' into 'main'
...
Implement NStore interface from NLib
See merge request soapbox-pub/ditto!106
2024-01-23 20:42:10 +00:00
Alex Gleason
77f2e2d940
pipeline: pass signals all the way down
2024-01-23 14:35:35 -06:00
Alex Gleason
c6062874bd
Implement NStore interface from NLib
2024-01-23 14:06:51 -06:00
Alex Gleason
0a58233b4e
Merge branch 'interfaces' into 'main'
...
Add new DittoEvent and DittoFilter interfaces
See merge request soapbox-pub/ditto!105
2024-01-23 18:39:33 +00:00
Alex Gleason
67a52c3b7d
Clean event before publishing
2024-01-23 12:15:48 -06:00
Alex Gleason
0b6874bb44
EventsDB: normalize the event to only NIP-01 event properties
2024-01-23 12:12:34 -06:00
Alex Gleason
aaf01462c1
Update code to use new DittoEvent and DittoFilter. Event -> NostrEvent
2024-01-23 12:07:22 -06:00
Alex Gleason
f58c2098f0
Add DittoEvent and DittoFilter dedicated interface modules
2024-01-23 11:17:31 -06:00
Alex Gleason
789ce80990
Merge branch 'rm-userdata' into 'main'
...
Remove UserData type, hydrate the event instead
See merge request soapbox-pub/ditto!104
2024-01-23 16:59:07 +00:00
Alex Gleason
b971b5274d
Remove UserData type, hydrate the event instead
2024-01-23 10:56:17 -06:00
Alex Gleason
6ef76af0ca
Merge branch 'zaps' into 'main'
...
Zaps
See merge request soapbox-pub/ditto!102
2024-01-23 01:07:37 +00:00
Alex Gleason
240b7d6a14
Index P tag of zap receipts
2024-01-22 15:39:02 -06:00
Alex Gleason
8494bd5f67
pipeline: pass signal down to everything that accepts it
2024-01-22 14:31:52 -06:00
Alex Gleason
c5e7b3bf0c
pipeline: clean up zaps function
2024-01-22 14:24:37 -06:00
Alex Gleason
13c50c71bd
Cache the LNURL response
2024-01-22 12:42:39 -06:00
Alex Gleason
d73fa7a311
Start simplifying LNURL code with NLib
2024-01-22 12:35:30 -06:00
Alex Gleason
0a1b6cdf4f
Merge remote-tracking branch 'origin/main' into zaps
2024-01-22 12:00:55 -06:00
Alex Gleason
d64be690d4
Merge branch 'nip05-map' into 'main'
...
Improve the NIP-05 cache
See merge request soapbox-pub/ditto!103
2024-01-22 17:58:24 +00:00
Alex Gleason
fc3934fa90
fetchWorker: wait for the worker to be ready before using it
2024-01-22 11:55:34 -06:00
Alex Gleason
dc6a6ccb5f
fetch.test: don't sleep at the beginning? I'm really confused why it's not working
2024-01-22 11:48:52 -06:00
Alex Gleason
4bec5f6f78
Try using httpbin in tests, cuz CI runner is hanging on example.com
2024-01-22 11:45:22 -06:00
Alex Gleason
8eccdafa64
Improve the NIP-05 cache
2024-01-21 20:22:11 -06:00
Alex Gleason
9a039bd021
firehose: ingest zap receipts
2024-01-17 11:54:28 -06:00
Alex Gleason
b5a1220159
Publish NWC event from pipeline
2024-01-16 18:11:19 -06:00
Alex Gleason
40d3a46c16
pipeline: use fetchWorker properly for zaps, pass signal
2024-01-15 17:56:03 -06:00
Alex Gleason
24d1ff4aec
lnurl: increase default limit to 2000
2024-01-15 17:46:23 -06:00
Alex Gleason
455459bea7
pipeline: process zap requests by local users
2024-01-15 17:14:08 -06:00
Alex Gleason
826a244f47
Add status zap endpoint, publish zap request to pipeline
2024-01-15 16:43:56 -06:00
Alex Gleason
786d9914af
Add LNURL utils
2024-01-15 16:20:10 -06:00
Alex Gleason
aa64029041
Merge branch 'cli' into 'main'
...
Add a CLI task to publish events as the Ditto admin
See merge request soapbox-pub/ditto!101
2024-01-15 18:43:10 +00:00
Alex Gleason
e16e81da86
Add a CLI task to publish events as the Ditto admin
2024-01-15 12:40:39 -06:00
Alex Gleason
3a654b8ff2
docs: kind 3036 event (not implemented yet)
2024-01-15 12:13:09 -06:00
Alex Gleason
d03343752e
Merge branch 'tags-search' into 'main'
...
EventsDB: index badges in FTS
See merge request soapbox-pub/ditto!100
2024-01-14 18:36:05 +00:00
Alex Gleason
58c2c8eb7f
EventsDB: index badges in FTS
2024-01-13 18:18:56 -06:00
Alex Gleason
8b3aee7e48
Merge branch 'admin-delete' into 'main'
...
Let admins delete events
See merge request soapbox-pub/ditto!99
2024-01-12 01:33:31 +00:00
Alex Gleason
e3631104a6
pipeline: fix admin event deletion
2024-01-11 19:11:04 -06:00
Alex Gleason
c4920ccb2e
pipeline: let the admin pubkey delete anything with kind 5's
2024-01-11 19:05:34 -06:00
Alex Gleason
31a6d0305f
Add admin status deletion endpoint
2024-01-11 18:47:26 -06:00
Alex Gleason
a08e698f29
unfurl: improve failure debug
2024-01-11 18:09:59 -06:00
Alex Gleason
8f66e49db8
docs: improve explanation of Ditto events
2024-01-11 09:54:44 -06:00
Alex Gleason
0914959ee6
Merge branch 'instance' into 'main'
...
Configurable Instance (partially), implement Pleroma's ConfigDB
See merge request soapbox-pub/ditto!98
2024-01-09 04:56:39 +00:00
Alex Gleason
bbaa5da0a0
docs: frontendConfig -> pleroma.config
2024-01-08 18:21:35 -06:00
Alex Gleason
db3ee13baa
Implement Pleroma config GET controller
2024-01-08 18:01:24 -06:00
Alex Gleason
8c972dbabd
Actually implement Pleroma's configs API correctly (wow!)
2024-01-08 17:34:07 -06:00
Alex Gleason
15810c1935
Configure server from the kind 0 event of the admin user
2024-01-08 16:53:46 -06:00
Alex Gleason
7c4590e6d4
Merge branch 'reqstorage' into 'main'
...
Refactor storages
See merge request soapbox-pub/ditto!97
2024-01-08 21:25:07 +00:00
Alex Gleason
937ae1eab6
Refactor EventStore to use a more Set-like interface
2024-01-08 15:18:01 -06:00
Alex Gleason
f8a0698c3a
Reqmeister: encounter -> storeEvent
2024-01-07 16:37:06 -06:00
Alex Gleason
a10108e109
Move client to a PoolStore storage class
2024-01-07 15:15:20 -06:00
Alex Gleason
20928cdf82
Reqmeister: pass client as an opt
2024-01-07 14:58:17 -06:00
Alex Gleason
ae44c08a2a
Move Reqmeister to a dedicated storage class
2024-01-07 14:54:33 -06:00
Alex Gleason
42dfe083bf
deno.json: exclude public directory to prevent LSP from crashing
...
https://github.com/denoland/deno/pull/19097#issuecomment-1880158674
2024-01-07 14:40:30 -06:00
Alex Gleason
9b39a1bd70
Fix LSP having too many files due to frontend bundle
2024-01-07 14:09:00 -06:00
Alex Gleason
eee6ccebab
Merge branch 'admin-accounts' into 'main'
...
Support admin accounts endpoint (first pass)
See merge request soapbox-pub/ditto!96
2024-01-06 04:50:18 +00:00
Alex Gleason
5d91c4b507
EventsDB: normalizeFilters
2024-01-05 18:06:51 -06:00
Alex Gleason
957b224453
adminAccountsController: support pagination, probably
2024-01-05 17:11:32 -06:00
Alex Gleason
e1a95b2319
adminAccountsController: fix hydrating accounts
2024-01-05 16:33:05 -06:00
Alex Gleason
46b7185f7b
adminAccountsController: bail if querying by unsupported params
2024-01-05 16:05:18 -06:00
Alex Gleason
5bd03bdcaa
Support admin accounts endpoint (first pass)
2024-01-05 15:35:55 -06:00
Alex Gleason
714391b807
SearchStore: only use the external search if the socket is open
2024-01-05 12:09:12 -06:00
Alex Gleason
4e6549407e
Merge branch 'storages' into 'main'
...
Support external search
See merge request soapbox-pub/ditto!95
2024-01-04 20:42:15 +00:00
Alex Gleason
89af83c660
search: fix abort signals
2024-01-04 02:09:23 -06:00
Alex Gleason
412f71599a
Add hydrator module to hydrate relationships on events
2024-01-04 01:44:56 -06:00
Alex Gleason
d170eb6d8e
SearchStorage: make author relations work
2024-01-04 00:52:55 -06:00
Alex Gleason
6d80b43335
SearchStore: bail early for empty filters
2024-01-04 00:23:37 -06:00
Alex Gleason
2595f1aadf
SearchStorage: try fetching authors
2024-01-04 00:20:22 -06:00
Alex Gleason
ee7347df10
SearchStore works!
2024-01-04 00:07:57 -06:00
Alex Gleason
9c0a16ebcd
client: use EventSet, normalizeFilters
2024-01-03 22:20:30 -06:00
Alex Gleason
b71124cc30
EventSet: event2 -> target
2024-01-03 22:15:20 -06:00
Alex Gleason
96dd635661
@/store.ts -> @/storages/types.ts
2024-01-03 22:02:34 -06:00
Alex Gleason
b3e4b79439
Delete db/events.ts, db/memorelay.ts, move to @/storages.ts
2024-01-03 21:56:41 -06:00
Alex Gleason
a4bc951eee
Add supportedNips to all storages
2024-01-03 21:39:54 -06:00
Alex Gleason
8ab0fefbf2
Memorelay: use EventSet data structure
2024-01-03 21:19:44 -06:00
Alex Gleason
384bb729b4
EventsDB: fix this binding of usersQuery
2024-01-03 20:59:46 -06:00
Alex Gleason
939eeae25a
Add Optimizer storage with EventSet
2024-01-03 20:22:02 -06:00
Alex Gleason
48ce1ba6c9
Memorelay: do some premature optimizations
2024-01-03 18:51:14 -06:00
Alex Gleason
c235fa6123
Memorelay: normalize filters
2024-01-03 18:15:28 -06:00
Alex Gleason
5bffffe07b
Add a function to calculate the intrinsic limit of a filter
2024-01-03 17:20:29 -06:00
Alex Gleason
80e6147927
Make reqmeister a storage
2024-01-03 15:28:03 -06:00
Alex Gleason
b5c23cf23f
Move EventsDB into storages
2024-01-03 14:45:56 -06:00
Alex Gleason
cfe44876af
Memorelay: add supportedNips property
2024-01-03 14:06:13 -06:00
Alex Gleason
f667ba3c69
Memorelay: reimplement by just looping events with matchFilters
2024-01-03 13:55:22 -06:00
Alex Gleason
a1dad3a0c5
Memorelay: #events -> #cache
2024-01-03 12:54:38 -06:00
Alex Gleason
24c405b9b9
Add Memorelay storages module
2024-01-03 12:54:07 -06:00
Alex Gleason
792e47f0f7
renderStatus: fix repost and reaction events being switched
2024-01-01 18:39:22 -06:00
Alex Gleason
462b5b095c
debug: add debug to queries
2024-01-01 18:06:10 -06:00
Alex Gleason
9b68a9fc30
Merge branch 'debug-improvements' into 'main'
...
Debug improvements
See merge request soapbox-pub/ditto!94
2024-01-01 23:50:40 +00:00
Alex Gleason
777ac39ec7
debug: improve output for nip05
2024-01-01 17:47:15 -06:00
Alex Gleason
d13b7435a7
debug: minimize socket close output
2024-01-01 17:30:01 -06:00
Alex Gleason
43359f787b
web.ts -> api.ts
2024-01-01 17:03:32 -06:00
Alex Gleason
1620668d5a
debug: log events signed through the API
2024-01-01 17:02:09 -06:00
Alex Gleason
1a15c21626
Merge branch 'pins' into 'main'
...
Support pinned statuses
See merge request soapbox-pub/ditto!93
2024-01-01 22:33:25 +00:00
Alex Gleason
57d7f7ff40
Support pinned param in accountStatusesController
2024-01-01 16:30:11 -06:00
Alex Gleason
3341d6aedd
Add pinController, unpinController
2024-01-01 16:23:08 -06:00
Alex Gleason
2d249ff20e
Merge branch 'bookmark' into 'main'
...
Support Bookmarks
See merge request soapbox-pub/ditto!92
2024-01-01 20:54:47 +00:00
Alex Gleason
9841d193eb
Ensure bookmarks are displayed reverse-chronologically
2024-01-01 14:51:04 -06:00
Alex Gleason
5f6715db46
Add unbookmarkController
2024-01-01 14:35:46 -06:00
Alex Gleason
b98487196f
Set bookmarked property of statuses, optimize status querying, fix relationships wrong assumption
2024-01-01 14:31:45 -06:00
Alex Gleason
5af0e0992f
db/events: ensure local bookmarks get indexed
2024-01-01 14:21:05 -06:00
Alex Gleason
c8e2707704
Add bookmarkController, refactor generic views
2024-01-01 14:07:39 -06:00
Alex Gleason
69a44f9d2b
Add bookmarkController
2024-01-01 13:45:07 -06:00
Alex Gleason
89bdc21caa
Merge branch 'blocks' into 'main'
...
Support /api/v1/block, and /api/v1/accounts/:id/unblock
See merge request soapbox-pub/ditto!91
2024-01-01 19:14:26 +00:00
Alex Gleason
38241d011d
Add missing newline
2024-01-01 13:08:32 -06:00
Alex Gleason
3807ca175f
Add unblock and unfollow endpoints
2024-01-01 12:50:09 -06:00
Alex Gleason
5b7c3a1d5e
Support GET /api/v1/blocks
2024-01-01 12:44:50 -06:00
Alex Gleason
0c311732d3
Merge branch 'nip51' into 'main'
...
Add support for blocking, refactor user lists (NIP-51)
See merge request soapbox-pub/ditto!90
2024-01-01 05:42:34 +00:00
Alex Gleason
84eb4cec2e
Add blockController, fix bugs
2023-12-31 23:35:37 -06:00
Alex Gleason
6d1375ba59
Optimize the relationships controller, support block relationships
2023-12-31 22:56:21 -06:00
Alex Gleason
63fb934220
setTag -> addTag
2023-12-31 22:06:35 -06:00
Alex Gleason
8023cfa7b2
Use a cleaner API for updating lists
2023-12-31 22:01:57 -06:00
Alex Gleason
e341ec7b36
db/events: respect the signal
2023-12-31 21:01:30 -06:00
Alex Gleason
f665c5f825
Remove isFollowing util
2023-12-31 20:31:06 -06:00
Alex Gleason
dc27ee05d4
Create updateListEvent helper function
2023-12-31 20:13:49 -06:00
Alex Gleason
335f7dc281
Add tags module
2023-12-31 14:05:55 -06:00
Alex Gleason
e5c8f8c146
Bump the timeout a bit when fetching an individual status
2023-12-31 12:48:49 -06:00
Alex Gleason
8c52ae80e4
reqmeister: fix eventhandler memory leak, fix promise resolving too soon, respect the signal
2023-12-31 12:47:28 -06:00
Alex Gleason
952b3f0d66
Fix http logger
2023-12-31 12:47:00 -06:00
Alex Gleason
f62662b89f
deno.json: add back debug task
...
The devserver refuses to restart automatically when `--inspect` is enabled
2023-12-30 11:41:08 -06:00
Alex Gleason
d133b6f009
Add Event<30361> fixture
2023-12-30 10:29:05 -06:00
Alex Gleason
e869651c63
users: remove duplicate debug call
2023-12-30 09:58:12 -06:00
Alex Gleason
79349124bc
Prevent duplicate usernames from being added
2023-12-30 09:57:33 -06:00
Alex Gleason
a564a03ee3
Merge branch 'users-to-events' into 'main'
...
Convert users to events
See merge request soapbox-pub/ditto!89
2023-12-30 06:06:48 +00:00
Alex Gleason
47e5696a1b
gitlab-ci: fix DITTO_NSEC in tests
2023-12-29 23:29:38 -06:00
Alex Gleason
529bc11da1
Support replaceable events and parameterized replaceable events (delete old versions upon insert)
2023-12-29 23:21:05 -06:00
Alex Gleason
08059f6b40
docs: nip78.md -> events.md
2023-12-29 21:22:59 -06:00
Alex Gleason
38238cc4a8
Fix db/events test, remove unnecessary AbortSignal from pipeline
2023-12-29 21:21:56 -06:00
Alex Gleason
3472428da8
relay: fix wrong function name
2023-12-29 21:12:57 -06:00
Alex Gleason
f6a8ab570f
db/events: simplify it further
2023-12-29 21:08:59 -06:00
Alex Gleason
b39902d322
Load local timeline a lot faster by using leftJoin instead of innerJoin, wow
2023-12-29 21:05:31 -06:00
Alex Gleason
9492b7654f
db/events: fix the local filter
2023-12-29 20:53:01 -06:00
Alex Gleason
358396fdac
Drop users table
2023-12-29 17:01:23 -06:00
Alex Gleason
13bf936088
Convert users to Events
2023-12-29 16:37:18 -06:00
Alex Gleason
716a7019c2
Merge branch 'store-refactor' into 'main'
...
Add EventStore interface, extend eventsDB, client, and memorelay from it
See merge request soapbox-pub/ditto!88
2023-12-29 19:55:29 +00:00
Alex Gleason
4ce51014de
events.test: fix type error
2023-12-29 13:53:09 -06:00
Alex Gleason
56373c4ce3
Refactor memorelay as an EventStore
2023-12-29 13:35:57 -06:00
Alex Gleason
ccfdbfeb8d
Rework client as EventStore
2023-12-29 13:22:51 -06:00
Alex Gleason
e6c8d1dad9
Add an EventStore interface, refactor eventsDB
2023-12-29 13:12:16 -06:00
Alex Gleason
62071173d9
Merge branch 'rm-mixer' into 'main'
...
Remove mixer module
See merge request soapbox-pub/ditto!87
2023-12-29 18:46:17 +00:00
Alex Gleason
5ed2ecbabd
Remove mixer module
2023-12-29 12:43:59 -06:00
Alex Gleason
e01383629e
unfurl: fix missing import, debug errors
2023-12-28 15:55:48 -06:00
Alex Gleason
5cbfbe5eaa
Merge branch 'pool-worker' into 'main'
...
Move the RelayPool to a worker thread
See merge request soapbox-pub/ditto!78
2023-12-28 20:31:18 +00:00
Alex Gleason
69d93b7cab
Merge remote-tracking branch 'origin/main' into pool-worker
2023-12-28 14:22:51 -06:00
Alex Gleason
a74d945f13
Merge branch 'memorelay' into 'main'
...
Add in-memory Nostr data store
See merge request soapbox-pub/ditto!86
2023-12-28 20:02:57 +00:00
Alex Gleason
08da26b12a
reqmeister: accept signal
2023-12-28 13:41:04 -06:00
Alex Gleason
2d19ab207e
Add memorelay.test.ts
2023-12-28 13:36:50 -06:00
Alex Gleason
33eead2148
Add filter.test.ts
2023-12-28 13:26:41 -06:00
Alex Gleason
b3c7e22052
memorelay: increase LRU limits
2023-12-28 12:15:24 -06:00
Alex Gleason
da6738a405
db/events: debug getFilters -> REQ
2023-12-28 12:07:49 -06:00
Alex Gleason
2b1e97ee1b
queries: get author from memory when possible
2023-12-28 00:39:05 -06:00
Alex Gleason
c2b25bc798
queries: refactor getEvent, getAuthor
2023-12-28 00:27:25 -06:00
Alex Gleason
96e6bd18b4
queries: pull from memorelay when applicable, optimize
2023-12-28 00:15:51 -06:00
Alex Gleason
f75cd21159
queries: make getAuthor use memorelay
2023-12-27 23:55:42 -06:00
Alex Gleason
d40b4a509e
pipeline: use memorelay for encounters
2023-12-27 23:36:01 -06:00
Alex Gleason
acffdd7fb8
memorelay: insertEvent
2023-12-27 23:22:24 -06:00
Alex Gleason
5398042156
Add memorelay module
2023-12-27 22:49:35 -06:00
Alex Gleason
84a083bc7c
debug: stringify tags
2023-12-27 22:27:05 -06:00
Alex Gleason
06be0c0a50
Merge branch 'debug' into 'main'
...
debug
See merge request soapbox-pub/ditto!85
2023-12-28 04:23:00 +00:00
Alex Gleason
cdc0248c7d
deno.json: get rid of debug task, make dev do it
2023-12-27 22:05:20 -06:00
Alex Gleason
8f07fe8a23
debug: improve logging with REQ
2023-12-27 22:02:32 -06:00
Alex Gleason
083496943a
debug: don't log http requests for /packs etc
2023-12-27 21:57:10 -06:00
Alex Gleason
8d312bdbea
note: don't console.error on bad link, fix isLinkURL function
2023-12-27 21:25:57 -06:00
Alex Gleason
4d05398be1
Debug client, pass timeout into reqmeister
2023-12-27 21:14:45 -06:00
Alex Gleason
baf51230ba
debug: hono logger
2023-12-27 20:57:20 -06:00
Alex Gleason
7b9baef165
debug: streaming, simplify other logs
2023-12-27 20:39:38 -06:00
Alex Gleason
4e01e8e626
debug: more modules
2023-12-27 20:19:59 -06:00
Alex Gleason
2fc9988c06
reqmeister: middleware/cache, reqmeister, nip05, unfurl, refactor some code
2023-12-27 20:07:13 -06:00
Alex Gleason
e121a8805e
debug: pool, db/events
2023-12-27 19:48:48 -06:00
Alex Gleason
52d39c7a56
debug: firehose, stats, sub
2023-12-27 19:35:06 -06:00
Alex Gleason
c335deca74
vscode: add launch.json
2023-12-27 17:36:52 -06:00
Alex Gleason
375fe09cdf
Delete accidentally added file
2023-12-27 17:36:41 -06:00
Alex Gleason
bf91d0393e
gitignore .cpuprofile files
2023-12-27 17:36:17 -06:00
Alex Gleason
667d00bbd0
debug: fetch.worker, sqlite.worker
2023-12-27 16:59:06 -06:00
Alex Gleason
520c35db60
Add debug library, adapt pipeline to it
2023-12-27 16:21:58 -06:00
Alex Gleason
8f414a9aee
Merge branch 'threads' into 'main'
...
Reqmeister
See merge request soapbox-pub/ditto!84
2023-12-27 02:19:55 +00:00
Alex Gleason
59b9593191
Stop automatically cleaning up events
2023-12-26 16:38:21 -06:00
Alex Gleason
e5e737faae
Reqmeister: add a jsdoc
2023-12-26 16:23:24 -06:00
Alex Gleason
ed107e49fd
Move new libs into deps.ts
2023-12-26 13:31:23 -06:00
Alex Gleason
62675218ce
pipeline: trackRelatedEvents -> fetchRelatedEvents
2023-12-26 13:27:48 -06:00
Alex Gleason
04925a580b
Reqmeister: timeout -> signal
2023-12-23 11:16:18 -06:00
Alex Gleason
17cef2f186
Merge remote-tracking branch 'origin/main' into threads
2023-12-22 22:56:12 -06:00
Alex Gleason
e768032446
Merge branch 'signal' into 'main'
...
Replace all timeouts with AbortSignal
See merge request soapbox-pub/ditto!83
2023-12-22 19:24:34 +00:00
Alex Gleason
ad0aaf97dd
Replace all timeouts with AbortSignal
2023-12-22 10:47:47 -06:00
Alex Gleason
6d6e3bcecc
Move console.info from firehose to pipeline
2023-12-22 10:24:14 -06:00
Alex Gleason
58b12ae462
client: fix wrong import of allRelays
2023-12-22 10:23:48 -06:00
Alex Gleason
acc133e8e2
Make Reqmeister work
2023-12-21 19:10:42 -06:00
Alex Gleason
4a32fe2c37
Add basic Reqmeister module
2023-12-21 14:56:21 -06:00
Alex Gleason
5ea9cc399f
Merge branch 'nip11' into 'main'
...
NIP-11: fix pubkey field
See merge request soapbox-pub/ditto!82
2023-12-20 04:02:07 +00:00
Alex Gleason
3ae47ee865
NIP-11: fix pubkey field
2023-12-19 22:01:41 -06:00
Alex Gleason
5d53224a76
Merge branch 'nip11' into 'main'
...
Add NIP-11 support
See merge request soapbox-pub/ditto!81
2023-12-20 03:21:00 +00:00
Alex Gleason
26e64e781c
Add NIP-11 support
2023-12-19 21:15:41 -06:00
Alex Gleason
b9e756de26
deps: remove Author from nostr-relaypool
2023-12-19 19:18:20 -06:00
Alex Gleason
107fe76fdf
Move the RelayPool to a worker thread
2023-12-17 14:55:59 -06:00
Alex Gleason
44689ac781
Merge branch 'deno-v1.39.0' into 'main'
...
Upgrade Deno to v1.39.0
See merge request soapbox-pub/ditto!77
2023-12-17 17:06:08 +00:00
Alex Gleason
b32eaca17d
deno fmt
2023-12-17 11:03:40 -06:00
Alex Gleason
00745c4df4
Upgrade Deno to v1.39.0
2023-12-17 11:02:44 -06:00
Alex Gleason
eec8432d50
Merge branch 'pool-log' into 'main'
...
Pool: log number of active relays to connect to
See merge request soapbox-pub/ditto!76
2023-12-17 17:01:16 +00:00
Alex Gleason
cdfb21caa6
Pool: log number of active relays to connect to
2023-12-17 11:00:04 -06:00
Alex Gleason
ddf1fce2b6
Merge branch 'author-rm-orderby' into 'main'
...
db/events: remove author orderBy clause
See merge request soapbox-pub/ditto!75
2023-12-11 20:47:15 +00:00
Alex Gleason
29d3b7bf89
db/events: remove author orderBy clause
2023-12-11 14:44:35 -06:00
Alex Gleason
e91fbf7b50
Merge branch 'stats' into 'main'
...
Add a stats module
See merge request soapbox-pub/ditto!73
2023-12-11 00:00:01 +00:00
Alex Gleason
862ff74d7b
relays: don't automatically add crawled relays
2023-12-10 17:56:51 -06:00
Alex Gleason
ff278487e8
Sentry: decrease tracesSampleRate to 0.2
2023-12-10 17:55:07 -06:00
Alex Gleason
a32b0e7066
stats: clean up prev usage
2023-12-10 17:48:21 -06:00
Alex Gleason
4f79b7ec29
stats: handle follow/following counts
2023-12-10 17:42:44 -06:00
Alex Gleason
2d3f12dc72
stats: firstE -> firstTaggedId
2023-12-10 16:32:43 -06:00
Alex Gleason
a5369d9826
Ensure relations are loaded throughout the API where needed
2023-12-10 16:21:18 -06:00
Alex Gleason
733b8ba9c5
pubkey_stats --> author_stats
2023-12-10 16:04:52 -06:00
Alex Gleason
07dc07ab71
Simplify author_stats relation
2023-12-10 15:54:31 -06:00
Alex Gleason
5415656b4d
Make author_stats and event_stats two separate keys on an event
2023-12-10 15:40:05 -06:00
Alex Gleason
a48c1e51e1
stats: fix queries getting stuck
2023-12-10 15:33:01 -06:00
Alex Gleason
6a92c5135d
db/events: support 'stats' relation
2023-12-10 15:02:19 -06:00
Alex Gleason
21b6a02ff3
views: avoid counting directly in the view, take from the event object if it has it
2023-12-10 14:27:15 -06:00
Alex Gleason
3147496d78
Merge remote-tracking branch 'origin/main' into stats
2023-12-10 14:05:14 -06:00
Alex Gleason
8b03d492a1
stats: add migration for stats tables
2023-12-10 14:04:26 -06:00
Alex Gleason
0f10a7c3a2
stats: refactor inReplyToId
2023-12-10 13:58:35 -06:00
Alex Gleason
7167553afe
stats: switch to a system based on diff tuples
2023-12-10 13:53:51 -06:00
Alex Gleason
a8944dd7ea
stats: support multiple values
2023-12-10 13:12:35 -06:00
Alex Gleason
eca923d7c8
stats: make the logic kind of make sense
2023-12-10 11:43:41 -06:00
Alex Gleason
bababe56f3
stats: update note count
2023-12-10 11:10:11 -06:00
Alex Gleason
2ab7616795
Upgrade Deno to v1.38.5
2023-12-10 10:47:13 -06:00
Alex Gleason
0724a2744f
Merge branch 'event-relations' into 'main'
...
Event relations (authors)
See merge request soapbox-pub/ditto!70
2023-12-08 01:47:24 +00:00
Alex Gleason
de9fecaf65
Add a stats module (draft)
2023-12-07 18:49:10 -06:00
Alex Gleason
2157822c7f
Merge branch 'sentry-queries' into 'main'
...
Track queries with Sentry
See merge request soapbox-pub/ditto!71
2023-12-07 18:25:22 +00:00
Alex Gleason
c532f54ea6
Track queries with Sentry
2023-12-07 12:09:04 -06:00
Alex Gleason
f50a78f978
db/events: don't return author unless it exists
2023-12-06 13:06:13 -06:00
Alex Gleason
a6947441fc
renderStatus: don't fetch the author, expect it to be passed in
2023-12-06 12:04:24 -06:00
Alex Gleason
7d2813b214
extra --> relations, move it back to a filter option
2023-12-05 22:06:27 -06:00
Alex Gleason
22b1d730eb
with --> extra
2023-12-05 19:42:30 -06:00
Alex Gleason
8b4621ddfb
Merge remote-tracking branch 'origin/main' into with_authors
2023-12-05 19:18:53 -06:00
Alex Gleason
709675754c
Merge branch 'limit-fix' into 'main'
...
db/events: fix `limit` not being applied correctly
See merge request soapbox-pub/ditto!69
2023-12-06 00:32:33 +00:00
Alex Gleason
a6bf5f47cd
db/events: fix limit not being applied correctly
2023-12-05 18:22:12 -06:00
Alex Gleason
2478545cd3
with_authors --> with: With[]
2023-12-05 17:27:52 -06:00
Alex Gleason
e3d5b2ac4a
Move with_authors to GetFilterOpts instead of DittoFilter
2023-12-05 17:15:39 -06:00
Alex Gleason
f9d3240fa8
with_author --> with_authors
2023-12-05 16:52:39 -06:00
Alex Gleason
b3c749d266
db/events: add support for with_author filter
2023-12-05 16:40:45 -06:00
Alex Gleason
df7b999bfe
Merge branch 'disable-relaypool-logging' into 'main'
...
Upgrade nostr-relaypool to v0.6.30, disable logging
See merge request soapbox-pub/ditto!68
2023-12-04 22:51:59 +00:00
Alex Gleason
4b4639014b
Upgrade nostr-relaypool to v0.6.30, disable logging
2023-12-04 16:49:54 -06:00
Alex Gleason
10447aed64
Merge branch 'trends-worker' into 'main'
...
Add TrendsWorker for tracking/querying trending tags with a Web Worker
See merge request soapbox-pub/ditto!67
2023-12-04 22:34:41 +00:00
Alex Gleason
d569dfd5b5
Add TrendsWorker for tracking/querying trending tags with a Web Worker
2023-12-04 16:33:02 -06:00
Alex Gleason
3169ad0a69
Merge branch 'trends-cache' into 'main'
...
Cache trending tags (with code copied from Mostr)
Closes #25
See merge request soapbox-pub/ditto!66
2023-12-04 19:23:29 +00:00
Alex Gleason
86daef416f
Cache trending tags (with code copied from Mostr)
2023-12-04 13:19:20 -06:00
Alex Gleason
caf671983b
Merge branch 'verify-worker' into 'main'
...
Add verifySignatureWorker
See merge request soapbox-pub/ditto!65
2023-12-04 18:16:27 +00:00
Alex Gleason
bc3f4bc534
Add verifySignatureWorker
2023-12-03 16:55:34 -06:00
Alex Gleason
e5d6c44437
Merge branch 'sqlite-worker' into 'main'
...
SqliteWorker
See merge request soapbox-pub/ditto!57
2023-12-03 21:02:34 +00:00
Alex Gleason
a4e7c241d0
Rewrite SqliteWorker with Comlink
2023-12-03 14:58:35 -06:00
Alex Gleason
455752e656
SqliteWorker: use SQLite path from config
2023-12-02 13:18:35 -06:00
Alex Gleason
b168175d14
Upgrade Deno to v1.38.4
2023-12-02 13:18:20 -06:00
Alex Gleason
1ad7eeb961
deno fmt, deno lint
2023-12-01 19:28:33 -06:00
Alex Gleason
89b74217b6
Use the SqliteWorker with our new Kysely dialect
2023-12-01 18:15:39 -06:00
Alex Gleason
01839fbcbf
Upgrade kysely and kysely-deno-sqlite
2023-12-01 17:57:55 -06:00
Alex Gleason
01886059ab
Merge remote-tracking branch 'origin/main' into sqlite-worker
2023-11-29 15:11:21 -06:00
Alex Gleason
4ca3f1768b
Merge branch 'fetchworker-init' into 'main'
...
fetchWorker: support init options, support POST
See merge request soapbox-pub/ditto!64
2023-11-29 20:02:45 +00:00
Alex Gleason
1232c5a838
fetchWorker: Array.from --> [...]
2023-11-29 13:04:22 -06:00
Alex Gleason
86749cc285
fetchWorker: return response as ArrayBuffer
2023-11-29 13:03:55 -06:00
Alex Gleason
99964c4d0e
fetchWorker: support POST'ing (and FormData)
2023-11-29 13:01:48 -06:00
Alex Gleason
06a2eaf8c3
Merge branch 'fetchworker-abort' into 'main'
...
fetchWorker: support RequestInit
See merge request soapbox-pub/ditto!63
2023-11-29 03:34:45 +00:00
Alex Gleason
da3efaa5bc
fetchWorker: support RequestInit
2023-11-28 21:31:26 -06:00
Alex Gleason
5a954a304d
Merge branch 'fetch-worker' into 'main'
...
Add fetchWorker for fetching off the main thread
Closes #77
See merge request soapbox-pub/ditto!62
2023-11-29 01:00:29 +00:00
Alex Gleason
3a85e3f8bf
Add fetchWorker for fetching off the main thread
2023-11-28 18:56:31 -06:00
Alex Gleason
81971df7fd
Merge branch 'signup-pow' into 'main'
...
Require POW on signup
See merge request soapbox-pub/ditto!59
2023-11-21 03:22:31 +00:00
Alex Gleason
595fb2cfc6
eventMatchesTemplate: let the event timestamp be greater than the template
2023-11-20 21:20:14 -06:00
Alex Gleason
e55ddbd8e6
eventMatchesTemplate: drop nonce tags before comparison
2023-11-20 19:57:57 -06:00
Alex Gleason
f4e334b5ff
Require POW on signup
2023-11-20 19:57:47 -06:00
Alex Gleason
944c2a401d
Merge branch 'sentry-deno' into 'main'
...
Switch to sentry-deno
See merge request soapbox-pub/ditto!61
2023-11-21 01:27:57 +00:00
Alex Gleason
3cdfbac4a1
Switch to sentry-deno
2023-11-20 19:25:39 -06:00
Alex Gleason
cecb225f42
Merge branch 'sign-pow' into 'main'
...
NIP-46: Request proof-of-work difficulty when signing events
See merge request soapbox-pub/ditto!58
2023-11-20 18:52:26 +00:00
Alex Gleason
5b030c99c5
Upgrade Hono to v3.10.1
2023-11-20 12:42:18 -06:00
Alex Gleason
c1bf326981
c.req.headers.get --> c.req.header, hono deprecation
2023-11-20 12:39:20 -06:00
Alex Gleason
bedc8fdf91
Upgrade nostr-tools to v1.17.0
2023-11-20 12:36:06 -06:00
Alex Gleason
6868f39719
NIP-46: request target proof-of-work difficulty when signing events
2023-11-20 12:34:19 -06:00
Alex Gleason
ae56d059b1
SqliteWorker: return query result instead of rows for query
2023-11-15 19:23:24 -06:00
Alex Gleason
e601c43197
deno fmt
2023-11-15 17:09:53 -06:00
Alex Gleason
71e8d26195
SqliteWorker: wait until worker is ready
2023-11-15 17:09:30 -06:00
Alex Gleason
87980bbba1
Add an SqliteWorker
2023-11-15 16:24:03 -06:00
Alex Gleason
7ed34a0906
Merge branch 'wal' into 'main'
...
Enable WAL, set some PRAGMA values at start
See merge request soapbox-pub/ditto!56
2023-10-12 05:07:48 +00:00
Alex Gleason
1b8a2d764c
Fix tests
2023-10-11 23:50:11 -05:00
Alex Gleason
079cdcf7d7
deno lint
2023-10-11 23:48:01 -05:00
Alex Gleason
9686469c28
Move PRAGMA utils to a separate file, log out PRAGMA values on start
2023-10-11 23:44:28 -05:00
Alex Gleason
f35d38d83b
Refactor pragmas
2023-10-11 23:34:59 -05:00
Alex Gleason
d63de0ad0b
Set SQLite PRAGMAs on start
2023-10-11 23:05:43 -05:00
Alex Gleason
149f8f6f04
Enable WAL mode on the database
2023-10-11 22:30:07 -05:00
Alex Gleason
7ec028465e
Merge branch 'nginx-static' into 'main'
...
Serve static files from nginx
See merge request soapbox-pub/ditto!55
2023-10-12 02:35:11 +00:00
Alex Gleason
3da30b4f6e
Serve static files from nginx
2023-10-11 21:33:13 -05:00
Alex Gleason
fe99e4a053
Merge branch 'sqlite3' into 'main'
...
Switch main database to Deno SQLite3
See merge request soapbox-pub/ditto!54
2023-10-11 21:26:53 +00:00
Alex Gleason
5cb87a0fd9
db/events: fix catching UNIQUE violations
2023-10-11 16:24:10 -05:00
Alex Gleason
451b77d6c4
Switch main database to Deno SQLite3
2023-10-11 16:13:58 -05:00
Alex Gleason
6c2c9541be
Merge branch 'no-pool-queries' into 'main'
...
No pool queries
See merge request soapbox-pub/ditto!53
2023-10-09 18:38:11 +00:00
Alex Gleason
9cd0a9bf22
Stop querying the pool
2023-10-09 13:17:02 -05:00
Alex Gleason
24cbc50c1b
mixer: stop querying relays
2023-10-09 13:15:02 -05:00
Alex Gleason
a0ebd80c7e
Merge branch 'views' into 'main'
...
Reorganize views
See merge request soapbox-pub/ditto!52
2023-10-06 20:52:36 +00:00
Alex Gleason
45d42f7ea4
Delete nostr-to-mastoapi.ts, add notifications.ts and relationships.ts
2023-10-06 15:40:34 -05:00
Alex Gleason
d49c63bb1a
Move statuses view into its own file
2023-10-06 15:37:31 -05:00
Alex Gleason
0b77e7d888
Add views/mastodon/accounts.ts, views/mastodon/emojis.ts
2023-10-06 15:28:02 -05:00
Alex Gleason
cb1141784e
views.ts: fix wrong import of toAccount
2023-10-06 15:19:27 -05:00
Alex Gleason
981d0ee693
views/attachment.ts -> views/mastodon/attachments.ts
2023-10-06 15:19:13 -05:00
Alex Gleason
180fdbd1c9
nostr-to-activitypub.ts --> activitypub/actor.ts
2023-10-06 15:09:01 -05:00
Alex Gleason
1662f616ef
Move unfurl code to a separate module
2023-10-06 15:05:22 -05:00
Alex Gleason
db17f84937
Move emojiTagSchema into schemas/nostr.ts
2023-10-06 12:39:22 -05:00
Alex Gleason
9ca3ec08a3
Delete transformers directory, rename views
2023-10-06 12:02:24 -05:00
Alex Gleason
8a244edad5
Merge branch 'docs-debug' into 'main'
...
Add debugging.md
See merge request soapbox-pub/ditto!51
2023-10-06 02:03:29 +00:00
Alex Gleason
e4f1f0dc53
Add debugging.md
2023-10-05 21:01:13 -05:00
Alex Gleason
f611a94144
Merge branch 'deno-v1.37.1' into 'main'
...
Upgrade Deno to v1.37.1
See merge request soapbox-pub/ditto!50
2023-10-06 01:20:26 +00:00
Alex Gleason
1c96d48106
Upgrade Deno to v1.37.1
2023-10-05 20:18:03 -05:00
Alex Gleason
11d4d7e549
Merge branch 'sentry' into 'main'
...
Add Sentry hono middleware
See merge request soapbox-pub/ditto!49
2023-10-06 01:07:05 +00:00
Alex Gleason
a15e28e48f
Add Sentry hono middleware
2023-10-05 20:04:27 -05:00
Alex Gleason
980e20ac35
Merge branch 'sentry' into 'main'
...
Add Sentry integration
See merge request soapbox-pub/ditto!48
2023-10-05 21:10:08 +00:00
Alex Gleason
d646598879
Add Sentry integration
2023-10-05 16:08:12 -05:00
Alex Gleason
7a8cc9b46e
Merge branch 'machina' into 'main'
...
Subscription: fix it with nostr-machina
See merge request soapbox-pub/ditto!46
2023-10-04 22:20:48 +00:00
Alex Gleason
233f671326
Subscription: fix it with nostr-machina
2023-10-04 16:09:23 -05:00
Alex Gleason
5847d95121
Merge branch 'fix-local-filter' into 'develop'
...
relay: fix querying by ids and authors
See merge request soapbox-pub/ditto!45
2023-09-12 00:47:31 +00:00
Alex Gleason
0f9ff5bcaa
relay: fix querying by ids and authors
2023-09-11 19:45:27 -05:00