From 9a27cdc27c900feaae5f6db4315c4ccdfc0c4493 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Nov 2017 15:20:42 +0100 Subject: Optimize signature verification --- server/models/video/video.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/models/video') 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) { toActivityPubObject = function (this: VideoInstance) { const { baseUrlHttp, baseUrlWs } = getBaseUrls(this) + if (!this.Tags) this.Tags = [] const tag = this.Tags.map(t => ({ type: 'Hashtag' as 'Hashtag', -- cgit v1.2.3