add quarantine videos feature (#1637)
authorJosh Morel <morel.josh@hotmail.com>
Tue, 2 Apr 2019 09:26:47 +0000 (05:26 -0400)
committerChocobozzz <chocobozzz@cpy.re>
Tue, 2 Apr 2019 09:26:47 +0000 (11:26 +0200)
commit7ccddd7b5250bd25a917a6e77e58b87b9484a2a4
treee75dc991369c1768804fefa114eb2a832881087f
parent12fed49ebab0c414713d57ea316b6488ae6bef99
add quarantine videos feature (#1637)

* add quarantine videos feature

* increase Notification settings test timeout

to 20000ms. was completing 7000 locally but timing out
after 10000 on travis

* fix quarantine video test issues

-propagate misspelling
-remove skip from server/tests/client.ts

* WIP use blacklist for moderator video approval

instead of video.quarantine boolean

* finish auto-blacklist feature
58 files changed:
client/src/app/+admin/admin.module.ts
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
client/src/app/+admin/moderation/index.ts
client/src/app/+admin/moderation/moderation.component.html
client/src/app/+admin/moderation/moderation.component.ts
client/src/app/+admin/moderation/moderation.routes.ts
client/src/app/+admin/moderation/video-auto-blacklist-list/index.ts [new file with mode: 0644]
client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.html [new file with mode: 0644]
client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.scss [new file with mode: 0644]
client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts [new file with mode: 0644]
client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts
client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts
client/src/app/+my-account/my-account-videos/my-account-videos.component.scss
client/src/app/core/server/server.service.ts
client/src/app/shared/users/user-notification.model.ts
client/src/app/shared/users/user-notifications.component.html
client/src/app/shared/video-blacklist/video-blacklist.service.ts
config/default.yaml
config/production.yaml.example
server/controllers/api/config.ts
server/controllers/api/users/my-notifications.ts
server/controllers/api/videos/blacklist.ts
server/controllers/api/videos/import.ts
server/controllers/api/videos/index.ts
server/helpers/custom-validators/video-blacklist.ts
server/helpers/video.ts
server/initializers/checker-before-init.ts
server/initializers/constants.ts
server/initializers/migrations/0350-video-blacklist-type.ts [new file with mode: 0644]
server/lib/activitypub/videos.ts
server/lib/emailer.ts
server/lib/job-queue/handlers/video-import.ts
server/lib/job-queue/handlers/video-transcoding.ts
server/lib/notifier.ts
server/lib/schedulers/update-videos-scheduler.ts
server/lib/user.ts
server/lib/video-blacklist.ts [new file with mode: 0644]
server/middlewares/validators/videos/video-blacklist.ts
server/models/account/user-notification-setting.ts
server/models/video/schedule-video-update.ts
server/models/video/video-blacklist.ts
server/tests/api/check-params/config.ts
server/tests/api/check-params/user-notifications.ts
server/tests/api/check-params/video-blacklist.ts
server/tests/api/check-params/videos.ts
server/tests/api/server/config.ts
server/tests/api/users/user-notifications.ts
server/tests/api/videos/video-blacklist.ts
shared/models/server/custom-config.model.ts
shared/models/server/server-config.model.ts
shared/models/users/user-notification-setting.model.ts
shared/models/users/user-notification.model.ts
shared/models/videos/blacklist/video-blacklist.model.ts
shared/utils/server/config.ts
shared/utils/users/user-notifications.ts
shared/utils/videos/video-blacklist.ts
shared/utils/videos/video-change-ownership.ts