Commit Graph

1317 Commits

Author SHA1 Message Date
P. Reis 3970bb81f7 refactor(MuteListPolicy): simplify condition 2024-05-10 18:03:35 -03: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
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