aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-28 18:50:44 +0200
committerChocobozzz <me@florianbigard.com>2018-05-28 18:50:44 +0200
commit53a613171e5d3e2d31c04d85ed883dd9a37cf1fb (patch)
tree7fbe33128110ccbe0f9c49c47ea2df394657f8a0 /server/lib/activitypub
parent1ab6d6bb6b78e4cd7079884fbf99aa89717dab26 (diff)
downloadPeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.tar.gz
PeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.tar.zst
PeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.zip
Fix publishedAt value after following a new instance
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/videos.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts
index be6794cef..907f7e11e 100644
--- a/server/lib/activitypub/videos.ts
+++ b/server/lib/activitypub/videos.ts
@@ -93,6 +93,7 @@ async function videoActivityObjectToDBAttributes (videoChannel: VideoChannelMode
93 channelId: videoChannel.id, 93 channelId: videoChannel.id,
94 duration: parseInt(duration, 10), 94 duration: parseInt(duration, 10),
95 createdAt: new Date(videoObject.published), 95 createdAt: new Date(videoObject.published),
96 publishedAt: new Date(videoObject.published),
96 // FIXME: updatedAt does not seems to be considered by Sequelize 97 // FIXME: updatedAt does not seems to be considered by Sequelize
97 updatedAt: new Date(videoObject.updated), 98 updatedAt: new Date(videoObject.updated),
98 views: videoObject.views, 99 views: videoObject.views,