Add history on server side
authorChocobozzz <me@florianbigard.com>
Mon, 17 Dec 2018 14:52:38 +0000 (15:52 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 18 Dec 2018 10:35:50 +0000 (11:35 +0100)
commit8b9a525a180cc9f3a98c334cc052dcfc8f36dcd4
tree5e3392af5592d1401ada86d21f93bb7ad9da8ab1
parent583cd0d2129dc855e599f981d70e537feade1632
Add history on server side

Add ability to disable, clear and list user videos history
19 files changed:
server/controllers/api/users/index.ts
server/controllers/api/users/me.ts
server/controllers/api/users/my-history.ts [new file with mode: 0644]
server/helpers/custom-validators/users.ts
server/initializers/constants.ts
server/initializers/migrations/0300-user-videos-history-enabled.ts [new file with mode: 0644]
server/middlewares/validators/index.ts
server/middlewares/validators/user-history.ts [new file with mode: 0644]
server/middlewares/validators/videos/video-watch.ts
server/models/account/user-video-history.ts
server/models/account/user.ts
server/models/utils.ts
server/models/video/video.ts
server/tests/api/check-params/users.ts
server/tests/api/check-params/videos-history.ts
server/tests/api/videos/videos-history.ts
shared/models/users/user-update-me.model.ts
shared/utils/users/users.ts
shared/utils/videos/video-history.ts