]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - shared/models/activitypub/objects/index.ts
Use 3 tables to represent abuses
authorChocobozzz <me@florianbigard.com>
Wed, 1 Jul 2020 14:05:30 +0000 (16:05 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 10 Jul 2020 12:02:41 +0000 (14:02 +0200)
commitd95d15598847c7f020aa056e7e6e0c02d2bbf732
treea8a593f1269688caf9e5f99559996f346290fec5
parent72493e44e9b455a04c4f093ed6c6ffa300b98d8b
Use 3 tables to represent abuses
103 files changed:
client/src/app/+admin/admin.component.ts
client/src/app/+admin/admin.module.ts
client/src/app/+admin/moderation/abuse-list/abuse-details.component.html [new file with mode: 0644]
client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts [moved from client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts with 59% similarity]
client/src/app/+admin/moderation/abuse-list/abuse-list.component.html [moved from client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html with 52% similarity]
client/src/app/+admin/moderation/abuse-list/abuse-list.component.scss [moved from client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.scss with 100% similarity]
client/src/app/+admin/moderation/abuse-list/abuse-list.component.ts [moved from client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts with 64% similarity]
client/src/app/+admin/moderation/abuse-list/index.ts [new file with mode: 0644]
client/src/app/+admin/moderation/abuse-list/moderation-comment-modal.component.html [moved from client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.html with 100% similarity]
client/src/app/+admin/moderation/abuse-list/moderation-comment-modal.component.scss [moved from client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.scss with 100% similarity]
client/src/app/+admin/moderation/abuse-list/moderation-comment-modal.component.ts [moved from client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.ts with 73% similarity]
client/src/app/+admin/moderation/index.ts
client/src/app/+admin/moderation/moderation.routes.ts
client/src/app/+admin/moderation/video-abuse-list/index.ts [deleted file]
client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.html [deleted file]
client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts
client/src/app/menu/menu.component.ts
client/src/app/shared/shared-forms/form-validators/abuse-validators.service.ts [moved from client/src/app/shared/shared-forms/form-validators/video-abuse-validators.service.ts with 81% similarity]
client/src/app/shared/shared-forms/form-validators/index.ts
client/src/app/shared/shared-forms/shared-form.module.ts
client/src/app/shared/shared-main/account/actor.model.ts
client/src/app/shared/shared-main/users/user-notification.model.ts
client/src/app/shared/shared-main/users/user-notifications.component.html
client/src/app/shared/shared-moderation/abuse.service.ts [moved from client/src/app/shared/shared-moderation/video-abuse.service.ts with 67% similarity]
client/src/app/shared/shared-moderation/index.ts
client/src/app/shared/shared-moderation/shared-moderation.module.ts
client/src/app/shared/shared-moderation/video-report.component.ts
server/controllers/api/abuse.ts [new file with mode: 0644]
server/controllers/api/index.ts
server/controllers/api/videos/abuse.ts
server/helpers/audit-logger.ts
server/helpers/custom-validators/abuses.ts [new file with mode: 0644]
server/helpers/custom-validators/activitypub/flag.ts
server/helpers/custom-validators/video-abuses.ts [deleted file]
server/helpers/middlewares/abuses.ts [moved from server/helpers/middlewares/video-abuses.ts with 56% similarity]
server/helpers/middlewares/index.ts
server/initializers/constants.ts
server/initializers/database.ts
server/initializers/migrations/0250-video-abuse-state.ts
server/lib/activitypub/process/process-flag.ts
server/lib/activitypub/send/send-flag.ts
server/lib/activitypub/url.ts
server/lib/emailer.ts
server/lib/emails/account-abuse-new/html.pug [new file with mode: 0644]
server/lib/emails/common/mixins.pug
server/lib/emails/video-abuse-new/html.pug
server/lib/emails/video-comment-abuse-new/html.pug [new file with mode: 0644]
server/lib/moderation.ts
server/lib/notifier.ts
server/middlewares/validators/abuse.ts [new file with mode: 0644]
server/middlewares/validators/index.ts
server/middlewares/validators/sort.ts
server/middlewares/validators/videos/index.ts
server/middlewares/validators/videos/video-abuses.ts [deleted file]
server/models/abuse/abuse.ts [moved from server/models/video/video-abuse.ts with 52% similarity]
server/models/abuse/video-abuse.ts [new file with mode: 0644]
server/models/abuse/video-comment-abuse.ts [new file with mode: 0644]
server/models/account/account-blocklist.ts
server/models/account/account.ts
server/models/account/user-notification.ts
server/models/account/user.ts
server/models/server/server-blocklist.ts
server/models/video/video.ts
server/tests/api/check-params/video-abuses.ts
server/tests/api/users/users.ts
server/tests/api/videos/video-abuse.ts
server/types/models/index.ts
server/types/models/moderation/abuse.ts [new file with mode: 0644]
server/types/models/moderation/index.ts [new file with mode: 0644]
server/types/models/user/user-notification.ts
server/types/models/video/index.ts
server/types/models/video/video-abuse.ts [deleted file]
server/typings/express/index.d.ts
shared/extra-utils/index.ts
shared/extra-utils/moderation/abuses.ts [new file with mode: 0644]
shared/extra-utils/users/user-notifications.ts
shared/extra-utils/videos/video-abuses.ts
shared/models/activitypub/activity.ts
shared/models/activitypub/objects/abuse-object.ts [moved from shared/models/activitypub/objects/video-abuse-object.ts with 84% similarity]
shared/models/activitypub/objects/common-objects.ts
shared/models/activitypub/objects/index.ts
shared/models/index.ts
shared/models/moderation/abuse/abuse-create.model.ts [new file with mode: 0644]
shared/models/moderation/abuse/abuse-filter.ts [new file with mode: 0644]
shared/models/moderation/abuse/abuse-reason.model.ts [new file with mode: 0644]
shared/models/moderation/abuse/abuse-state.model.ts [moved from shared/models/videos/abuse/video-abuse-state.model.ts with 61% similarity]
shared/models/moderation/abuse/abuse-update.model.ts [new file with mode: 0644]
shared/models/moderation/abuse/abuse-video-is.type.ts [new file with mode: 0644]
shared/models/moderation/abuse/abuse.model.ts [new file with mode: 0644]
shared/models/moderation/abuse/index.ts [new file with mode: 0644]
shared/models/moderation/account-block.model.ts [moved from shared/models/blocklist/account-block.model.ts with 100% similarity]
shared/models/moderation/index.ts [moved from shared/models/blocklist/index.ts with 75% similarity]
shared/models/moderation/server-block.model.ts [moved from shared/models/blocklist/server-block.model.ts with 100% similarity]
shared/models/users/user-notification.model.ts
shared/models/users/user-right.enum.ts
shared/models/users/user-role.ts
shared/models/videos/abuse/index.ts [deleted file]
shared/models/videos/abuse/video-abuse-create.model.ts [deleted file]
shared/models/videos/abuse/video-abuse-reason.model.ts [deleted file]
shared/models/videos/abuse/video-abuse-update.model.ts [deleted file]
shared/models/videos/abuse/video-abuse-video-is.type.ts [deleted file]
shared/models/videos/abuse/video-abuse.model.ts [deleted file]
shared/models/videos/index.ts