Commit graph

3448 commits

Author SHA1 Message Date
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