diff options
Diffstat (limited to 'server/helpers/youtube-dl.ts')
-rw-r--r-- | server/helpers/youtube-dl.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts index 74d3e213b..43156bb22 100644 --- a/server/helpers/youtube-dl.ts +++ b/server/helpers/youtube-dl.ts | |||
@@ -95,7 +95,7 @@ function titleTruncation (title: string) { | |||
95 | } | 95 | } |
96 | 96 | ||
97 | function descriptionTruncation (description: string) { | 97 | function descriptionTruncation (description: string) { |
98 | if (!description) return undefined | 98 | if (!description || description.length < CONSTRAINTS_FIELDS.VIDEOS.DESCRIPTION.min) return undefined |
99 | 99 | ||
100 | return truncate(description, { | 100 | return truncate(description, { |
101 | 'length': CONSTRAINTS_FIELDS.VIDEOS.DESCRIPTION.max, | 101 | 'length': CONSTRAINTS_FIELDS.VIDEOS.DESCRIPTION.max, |