diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-17 15:20:42 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 9a27cdc27c900feaae5f6db4315c4ccdfc0c4493 (patch) | |
tree | f91fcfa0fa1a2e45aae1c5333ef2f7ec60e56ef0 /server/models/video | |
parent | 975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a (diff) | |
download | PeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.tar.gz PeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.tar.zst PeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.zip |
Optimize signature verification
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 5fb254b2d..dc10aca1a 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -550,6 +550,7 @@ toFormattedDetailsJSON = function (this: VideoInstance) { | |||
550 | 550 | ||
551 | toActivityPubObject = function (this: VideoInstance) { | 551 | toActivityPubObject = function (this: VideoInstance) { |
552 | const { baseUrlHttp, baseUrlWs } = getBaseUrls(this) | 552 | const { baseUrlHttp, baseUrlWs } = getBaseUrls(this) |
553 | if (!this.Tags) this.Tags = [] | ||
553 | 554 | ||
554 | const tag = this.Tags.map(t => ({ | 555 | const tag = this.Tags.map(t => ({ |
555 | type: 'Hashtag' as 'Hashtag', | 556 | type: 'Hashtag' as 'Hashtag', |