aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-16 11:08:25 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commitefc32059d980c51793e8e9ac0fb6a885a8026f94 (patch)
treec272e63fd57a9625b53dc26ceb1b46aee35d21d3 /server/models/video/video.ts
parentd846501818c2d29e66e6fd141789cb04fd55a437 (diff)
downloadPeerTube-efc32059d980c51793e8e9ac0fb6a885a8026f94.tar.gz
PeerTube-efc32059d980c51793e8e9ac0fb6a885a8026f94.tar.zst
PeerTube-efc32059d980c51793e8e9ac0fb6a885a8026f94.zip
Send server announce when users upload a video
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 480e54276..64ee7ae34 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -558,7 +558,7 @@ toActivityPubObject = function (this: VideoInstance) {
558 for (const file of this.VideoFiles) { 558 for (const file of this.VideoFiles) {
559 url.push({ 559 url.push({
560 type: 'Link', 560 type: 'Link',
561 mimeType: 'video/' + file.extname, 561 mimeType: 'video/' + file.extname.replace('.', ''),
562 url: getVideoFileUrl(this, file, baseUrlHttp), 562 url: getVideoFileUrl(this, file, baseUrlHttp),
563 width: file.resolution, 563 width: file.resolution,
564 size: file.size 564 size: file.size
@@ -601,8 +601,8 @@ toActivityPubObject = function (this: VideoInstance) {
601 }, 601 },
602 views: this.views, 602 views: this.views,
603 nsfw: this.nsfw, 603 nsfw: this.nsfw,
604 published: this.createdAt, 604 published: this.createdAt.toISOString(),
605 updated: this.updatedAt, 605 updated: this.updatedAt.toISOString(),
606 mediaType: 'text/markdown', 606 mediaType: 'text/markdown',
607 content: this.getTruncatedDescription(), 607 content: this.getTruncatedDescription(),
608 icon: { 608 icon: {