predefined report reasons & improved reporter UI (#2842)
authorRigel Kent <sendmemail@rigelk.eu>
Mon, 22 Jun 2020 11:00:39 +0000 (13:00 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2020 11:00:39 +0000 (13:00 +0200)
commit1ebddadd0704812a4600c39cabe2268321e88331
tree1cc8560e5b63e9976aa5411ba800a62cfe7b8ea9
parent07aea1a2642fc9868cb01e30c322514029d5b95a
predefined report reasons & improved reporter UI (#2842)

- added `startAt` and `endAt` optional timestamps to help pin down reported sections of a video
- added predefined report reasons
- added video player with report modal
35 files changed:
client/src/app/+admin/moderation/moderation.component.scss
client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.html
client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts
client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
client/src/app/shared/rest/rest.service.ts
client/src/app/shared/video-abuse/video-abuse.service.ts
client/src/app/shared/video/modals/video-block.component.html
client/src/app/shared/video/modals/video-report.component.html
client/src/app/shared/video/modals/video-report.component.scss
client/src/app/shared/video/modals/video-report.component.ts
client/src/app/shared/video/video.model.ts
client/src/environments/environment.e2e.ts
client/src/environments/environment.hmr.ts
client/src/environments/environment.prod.ts
client/src/environments/environment.ts
client/src/sass/include/_mixins.scss
client/src/sass/player/peertube-skin.scss
server/controllers/api/videos/abuse.ts
server/helpers/custom-validators/video-abuses.ts
server/initializers/constants.ts
server/initializers/migrations/0515-video-abuse-reason-timestamps.ts [new file with mode: 0644]
server/lib/activitypub/process/process-flag.ts
server/middlewares/validators/videos/video-abuses.ts
server/models/video/video-abuse.ts
server/tests/api/check-params/video-abuses.ts
server/tests/api/videos/video-abuse.ts
shared/extra-utils/videos/video-abuses.ts
shared/models/activitypub/activity.ts
shared/models/activitypub/objects/common-objects.ts
shared/models/activitypub/objects/video-abuse-object.ts
shared/models/videos/abuse/video-abuse-create.model.ts
shared/models/videos/abuse/video-abuse-reason.model.ts [new file with mode: 0644]
shared/models/videos/abuse/video-abuse.model.ts
shared/models/videos/index.ts
support/doc/api/openapi.yaml