diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-11 19:17:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-11 19:17:43 +0100 |
commit | 9a8cbd8278a37ee414f17d7de7c7281123484ba1 (patch) | |
tree | 11dcf06211e6e49cfb638172c3fa65011ff7fb88 /server/lib/activitypub/process | |
parent | 05bc4dfa069be5273765a68652598d72dbf482fb (diff) | |
download | PeerTube-9a8cbd8278a37ee414f17d7de7c7281123484ba1.tar.gz PeerTube-9a8cbd8278a37ee414f17d7de7c7281123484ba1.tar.zst PeerTube-9a8cbd8278a37ee414f17d7de7c7281123484ba1.zip |
Activity Pub improvements
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r-- | server/lib/activitypub/process/process-update.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-update.ts b/server/lib/activitypub/process/process-update.ts index a5431c76b..5439a47f2 100644 --- a/server/lib/activitypub/process/process-update.ts +++ b/server/lib/activitypub/process/process-update.ts | |||
@@ -66,17 +66,19 @@ async function updateRemoteVideo (actor: ActorModel, activity: ActivityUpdate) { | |||
66 | 66 | ||
67 | const videoData = await videoActivityObjectToDBAttributes(videoChannel, videoAttributesToUpdate, activity.to, activity.cc) | 67 | const videoData = await videoActivityObjectToDBAttributes(videoChannel, videoAttributesToUpdate, activity.to, activity.cc) |
68 | videoInstance.set('name', videoData.name) | 68 | videoInstance.set('name', videoData.name) |
69 | videoInstance.set('uuid', videoData.uuid) | ||
70 | videoInstance.set('url', videoData.url) | ||
69 | videoInstance.set('category', videoData.category) | 71 | videoInstance.set('category', videoData.category) |
70 | videoInstance.set('licence', videoData.licence) | 72 | videoInstance.set('licence', videoData.licence) |
71 | videoInstance.set('language', videoData.language) | 73 | videoInstance.set('language', videoData.language) |
74 | videoInstance.set('description', videoData.description) | ||
72 | videoInstance.set('nsfw', videoData.nsfw) | 75 | videoInstance.set('nsfw', videoData.nsfw) |
73 | videoInstance.set('commentsEnabled', videoData.commentsEnabled) | 76 | videoInstance.set('commentsEnabled', videoData.commentsEnabled) |
74 | videoInstance.set('privacy', videoData.privacy) | ||
75 | videoInstance.set('description', videoData.description) | ||
76 | videoInstance.set('duration', videoData.duration) | 77 | videoInstance.set('duration', videoData.duration) |
77 | videoInstance.set('createdAt', videoData.createdAt) | 78 | videoInstance.set('createdAt', videoData.createdAt) |
78 | videoInstance.set('updatedAt', videoData.updatedAt) | 79 | videoInstance.set('updatedAt', videoData.updatedAt) |
79 | videoInstance.set('views', videoData.views) | 80 | videoInstance.set('views', videoData.views) |
81 | videoInstance.set('privacy', videoData.privacy) | ||
80 | 82 | ||
81 | await videoInstance.save(sequelizeOptions) | 83 | await videoInstance.save(sequelizeOptions) |
82 | 84 | ||