enhance: Forward report (#8001)
* implement sending AP Flag object
Optionally allow a user to select to forward a report about a remote
user to the other instance. This is added in a backwards-compatible way.
* add locale string
* forward report only for moderators
* add switch to moderator UI to forward report
* fix report note url
* return forwarded status from API
apparently forgot to carry this over from my testing environment
* object in Flag activity has to be an array
For correct interoperability with Pleroma the "object" property of the Flag
activity has to be an array.
This array will in the future also hold the link to respective notes, so it
makes sense to correct this on our side.
* Update get-note-menu.ts
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Showing
- locales/ja-JP.yml 3 additions, 0 deletionslocales/ja-JP.yml
- packages/backend/migration/1637320813000-forwarded-report.js 13 additions, 0 deletionspackages/backend/migration/1637320813000-forwarded-report.js
- packages/backend/src/models/entities/abuse-user-report.ts 5 additions, 0 deletionspackages/backend/src/models/entities/abuse-user-report.ts
- packages/backend/src/models/repositories/abuse-user-report.ts 1 addition, 0 deletions...ages/backend/src/models/repositories/abuse-user-report.ts
- packages/backend/src/remote/activitypub/renderer/flag.ts 15 additions, 0 deletionspackages/backend/src/remote/activitypub/renderer/flag.ts
- packages/backend/src/server/api/endpoints/admin/abuse-user-reports.ts 5 additions, 0 deletions...kend/src/server/api/endpoints/admin/abuse-user-reports.ts
- packages/backend/src/server/api/endpoints/admin/resolve-abuse-user-report.ts 19 additions, 1 deletion...c/server/api/endpoints/admin/resolve-abuse-user-report.ts
- packages/client/src/components/abuse-report.vue 102 additions, 0 deletionspackages/client/src/components/abuse-report.vue
- packages/client/src/pages/admin/abuses.vue 5 additions, 57 deletionspackages/client/src/pages/admin/abuses.vue
- packages/client/src/scripts/get-note-menu.ts 1 addition, 1 deletionpackages/client/src/scripts/get-note-menu.ts
Loading