feat: 通報を受けた際にメールまたはWebhookで通知を送出出来るようにする (#13758)
* feat: 通報を受けた際にメールまたはWebhookで通知を送出出来るようにする * モデログに対応&エンドポイントを単一オブジェクトでのサポートに変更(API経由で大量に作るシチュエーションもないと思うので) * fix spdx * fix migration * fix migration * fix models * add e2e webhook * tweak * fix modlog * fix bugs * add tests and fix bugs * add tests and fix bugs * add tests * fix path * regenerate locale * 混入除去 * 混入除去 * add abuseReportResolved * fix pnpm-lock.yaml * add abuseReportResolved test * fix bugs * fix ui * add tests * fix CHANGELOG.md * add tests * add RoleService.getModeratorIds tests * WebhookServiceをUserとSystemに分割 * fix CHANGELOG.md * fix test * insertOneを使う用に * fix * regenerate locales * revert version * separate webhook job queue * fix *🎨 * Update QueueProcessorService.ts --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Showing
- CHANGELOG.md 1 addition, 0 deletionsCHANGELOG.md
- locales/index.d.ts 94 additions, 0 deletionslocales/index.d.ts
- locales/ja-JP.yml 27 additions, 0 deletionslocales/ja-JP.yml
- packages/backend/migration/1713656541000-abuse-report-notification.js 62 additions, 0 deletions...kend/migration/1713656541000-abuse-report-notification.js
- packages/backend/src/core/AbuseReportNotificationService.ts 406 additions, 0 deletionspackages/backend/src/core/AbuseReportNotificationService.ts
- packages/backend/src/core/AbuseReportService.ts 128 additions, 0 deletionspackages/backend/src/core/AbuseReportService.ts
- packages/backend/src/core/CoreModule.ts 38 additions, 6 deletionspackages/backend/src/core/CoreModule.ts
- packages/backend/src/core/EmailService.ts 2 additions, 0 deletionspackages/backend/src/core/EmailService.ts
- packages/backend/src/core/GlobalEventService.ts 4 additions, 0 deletionspackages/backend/src/core/GlobalEventService.ts
- packages/backend/src/core/NoteCreateService.ts 6 additions, 6 deletionspackages/backend/src/core/NoteCreateService.ts
- packages/backend/src/core/QueueModule.ts 28 additions, 10 deletionspackages/backend/src/core/QueueModule.ts
- packages/backend/src/core/QueueService.ts 56 additions, 7 deletionspackages/backend/src/core/QueueService.ts
- packages/backend/src/core/RoleService.ts 24 additions, 6 deletionspackages/backend/src/core/RoleService.ts
- packages/backend/src/core/SystemWebhookService.ts 233 additions, 0 deletionspackages/backend/src/core/SystemWebhookService.ts
- packages/backend/src/core/UserBlockingService.ts 3 additions, 3 deletionspackages/backend/src/core/UserBlockingService.ts
- packages/backend/src/core/UserFollowingService.ts 6 additions, 6 deletionspackages/backend/src/core/UserFollowingService.ts
- packages/backend/src/core/UserWebhookService.ts 99 additions, 0 deletionspackages/backend/src/core/UserWebhookService.ts
- packages/backend/src/core/activitypub/ApInboxService.ts 4 additions, 6 deletionspackages/backend/src/core/activitypub/ApInboxService.ts
- packages/backend/src/core/entities/AbuseReportNotificationRecipientEntityService.ts 88 additions, 0 deletions...entities/AbuseReportNotificationRecipientEntityService.ts
- packages/backend/src/core/entities/SystemWebhookEntityService.ts 74 additions, 0 deletions...s/backend/src/core/entities/SystemWebhookEntityService.ts
Loading
Please register or sign in to comment