diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 6 |
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: { |