Commit Graph

1336 Commits

Author SHA1 Message Date
Alex Gleason cc9d2efef9
Fix mentions 2024-05-13 18:50:20 -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
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