Commit Graph

1654 Commits

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