ActivityPub-federated video streaming platform using P2P directly in your web browser
Use named chunk for embed on analyze
Chocobozzz031ea8efed69
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.jsindex ef17deeb6c..7de63adfcc 100644--- a/client/webpack/webpack.video-embed.js+++ b/client/webpack/webpack.video-embed.js@@ -40,7 +40,11 @@ module.exports = function () {: '[name].[hash].bundle.js',sourceMapFilename: '[file].map',- chunkFilename: '[id].[hash].chunk.js',++ chunkFilename: process.env.ANALYZE_BUNDLE === 'true'+ ? '[name].chunk.js'+ : '[id].[hash].chunk.js',+publicPath: '/client/standalone/videos/'},diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.tsindex d51c869728..37cc07b944 100644--- a/server/middlewares/validators/videos/videos.ts+++ b/server/middlewares/validators/videos/videos.ts@@ -3,7 +3,7 @@ import { body, param, query, ValidationChain } from 'express-validator'import { isAbleToUploadVideo } from '@server/lib/user'import { getServerActor } from '@server/models/application/application'import { ExpressPromiseHandler } from '@server/types/express'-import { MVideoFullLight, MVideoWithRights } from '@server/types/models'+import { MVideoWithRights } from '@server/types/models'import { ServerErrorCode, UserRight, VideoChangeOwnershipStatus, VideoPrivacy } from '../../../../shared'import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'import { VideoChangeOwnershipAccept } from '../../../../shared/models/videos/video-change-ownership-accept.model'diff --git a/server/models/account/user.ts b/server/models/account/user.tsindex 0834ecfa59..c1f22b76aa 100644--- a/server/models/account/user.ts+++ b/server/models/account/user.ts@@ -28,7 +28,6 @@ import {MUserFormattable,MUserNotifSettingChannelDefault,MUserWithNotificationSetting,- MVideoFullLight,MVideoWithRights} from '@server/types/models'import { hasUserRight, USER_ROLE_LABELS } from '../../../shared/core-utils/users'