]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit
Add publishedAt field for video model.
authorJulien Le Bras <julien.lb.pro@gmail.com>
Wed, 28 Mar 2018 21:38:52 +0000 (23:38 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 30 Mar 2018 06:52:58 +0000 (08:52 +0200)
commit2922e048de95738b3319054ce0778f873a34a0ee
treeee35b2e8bf9e1967b7d08974d6680697b2965472
parent2920281946cffd62ce5046b661d63f9867ab0654
Add publishedAt field for video model.

* New field added in the `video` table + migration script

* `publishedAt` updated to NOW when privacy changes from private to
  public/unlisted (default = NOW)

* Models updated to handle the new attribute

* Client interface updated to use `publishedAt` instead of `createdAt`
  except in My Account > My Videos view
client/src/app/shared/video/video-miniature.component.html
client/src/app/shared/video/video.model.ts
client/src/app/videos/+video-watch/video-watch.component.html
server/controllers/api/videos/index.ts
server/initializers/constants.ts
server/initializers/migrations/0200-video-published-at.ts [new file with mode: 0644]
server/models/video/video.ts
shared/models/videos/video.model.ts