Add ability to choose what policy we have for NSFW videos
authorChocobozzz <me@florianbigard.com>
Thu, 19 Apr 2018 09:01:34 +0000 (11:01 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 19 Apr 2018 09:01:34 +0000 (11:01 +0200)
commit0883b3245bf0deb9106c4041e9afbd3521b79280
treefcb73005e0b31a3b763ee5d22d5fc39c2da89907
parent04ed10b21e8e1339514faae0bb690e4d97c23b0a
Add ability to choose what policy we have for NSFW videos

There is a global instance setting and a per user setting
41 files changed:
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/account/account-settings/account-details/account-details.component.html
client/src/app/account/account-settings/account-details/account-details.component.scss
client/src/app/account/account-settings/account-details/account-details.component.ts
client/src/app/core/auth/auth-user.model.ts
client/src/app/core/server/server.service.ts
client/src/app/shared/users/user.model.ts
client/src/app/shared/video/video-miniature.component.html
client/src/app/shared/video/video-miniature.component.ts
client/src/app/shared/video/video.model.ts
client/src/app/videos/+video-watch/video-watch.component.ts
config/default.yaml
config/production.yaml.example
config/test.yaml
server/controllers/api/config.ts
server/controllers/api/users.ts
server/controllers/api/videos/index.ts
server/controllers/feeds.ts
server/helpers/custom-validators/users.ts
server/initializers/checker.ts
server/initializers/constants.ts
server/initializers/installer.ts
server/initializers/migrations/0205-user-nsfw-policy.ts [new file with mode: 0644]
server/middlewares/oauth.ts
server/middlewares/validators/config.ts
server/middlewares/validators/users.ts
server/models/account/user.ts
server/models/video/video.ts
server/tests/api/check-params/config.ts
server/tests/api/check-params/users.ts
server/tests/api/server/config.ts
server/tests/api/users/users.ts
server/tests/api/videos/video-nsfw.ts [new file with mode: 0644]
server/tests/utils/users/users.ts
server/tests/utils/videos/videos.ts
shared/models/server/custom-config.model.ts
shared/models/server/server-config.model.ts
shared/models/users/user-update-me.model.ts
shared/models/users/user.model.ts
shared/models/videos/nsfw-policy.type.ts [new file with mode: 0644]