From 45cd28b679d3472392ed5d77dcfd8f442d1565bf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Mar 2018 13:45:24 +0200 Subject: Remove alpine image --- server/helpers/custom-validators/activitypub/videos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts index 3af587a32..d8986b2a0 100644 --- a/server/helpers/custom-validators/activitypub/videos.ts +++ b/server/helpers/custom-validators/activitypub/videos.ts @@ -57,7 +57,7 @@ function isVideoTorrentObjectValid (video: any) { isBooleanValid(video.commentsEnabled) && isDateValid(video.published) && isDateValid(video.updated) && - setTruncatedContent(video) && + setRemoteVideoTruncatedContent(video) && (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) && isRemoteVideoIconValid(video.icon) && setValidRemoteVideoUrls(video) && @@ -113,7 +113,7 @@ function setValidRemoteVideoUrls (video: any) { return true } -function setTruncatedContent (video: any) { +function setRemoteVideoTruncatedContent (video: any) { if (video.content) { video.content = peertubeTruncate(video.content, CONSTRAINTS_FIELDS.VIDEOS.TRUNCATED_DESCRIPTION.max) } -- cgit v1.2.3