Commit Graph

1825 Commits

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