From 687c6180bc5f48b9159bbb229ec5404cc205919e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 21 Oct 2019 09:48:21 +0200 Subject: Fix federation issue with some actor descriptions --- server/models/video/video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/video') diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 6856dcd9f..0ee3feaf3 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1920,7 +1920,7 @@ export class VideoModel extends Model { if (!this.description) return null const maxLength = CONSTRAINTS_FIELDS.VIDEOS.TRUNCATED_DESCRIPTION.max - return peertubeTruncate(this.description, maxLength) + return peertubeTruncate(this.description, { length: maxLength }) } getOriginalFileResolution () { -- cgit v1.2.3