diff options
author | Chocobozzz <me@florianbigard.com> | 2019-06-07 15:37:36 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-07 15:37:36 +0200 |
commit | 12bec528aafd895075e19486b87b64f0f58581ac (patch) | |
tree | 65df371a3746c371fbacc9c959ad0c60831f69b1 /client/src/app/core/server | |
parent | b91bc1d1f3591c35ab4426f6ab594b4bd9f1ef62 (diff) | |
download | PeerTube-12bec528aafd895075e19486b87b64f0f58581ac.tar.gz PeerTube-12bec528aafd895075e19486b87b64f0f58581ac.tar.zst PeerTube-12bec528aafd895075e19486b87b64f0f58581ac.zip |
Don't break video scheduled publication
Diffstat (limited to 'client/src/app/core/server')
-rw-r--r-- | client/src/app/core/server/server.service.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index 3a8a535fd..689f25a40 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -10,6 +10,7 @@ import { isDefaultLocale, peertubeTranslate } from '../../../../../shared/models | |||
10 | import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' | 10 | import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' |
11 | import { sortBy } from '@app/shared/misc/utils' | 11 | import { sortBy } from '@app/shared/misc/utils' |
12 | import { VideoPlaylistPrivacy } from '@shared/models/videos/playlist/video-playlist-privacy.model' | 12 | import { VideoPlaylistPrivacy } from '@shared/models/videos/playlist/video-playlist-privacy.model' |
13 | import { cloneDeep } from 'lodash-es' | ||
13 | 14 | ||
14 | @Injectable() | 15 | @Injectable() |
15 | export class ServerService { | 16 | export class ServerService { |
@@ -160,27 +161,27 @@ export class ServerService { | |||
160 | } | 161 | } |
161 | 162 | ||
162 | getConfig () { | 163 | getConfig () { |
163 | return this.config | 164 | return cloneDeep(this.config) |
164 | } | 165 | } |
165 | 166 | ||
166 | getVideoCategories () { | 167 | getVideoCategories () { |
167 | return this.videoCategories | 168 | return cloneDeep(this.videoCategories) |
168 | } | 169 | } |
169 | 170 | ||
170 | getVideoLicences () { | 171 | getVideoLicences () { |
171 | return this.videoLicences | 172 | return cloneDeep(this.videoLicences) |
172 | } | 173 | } |
173 | 174 | ||
174 | getVideoLanguages () { | 175 | getVideoLanguages () { |
175 | return this.videoLanguages | 176 | return cloneDeep(this.videoLanguages) |
176 | } | 177 | } |
177 | 178 | ||
178 | getVideoPrivacies () { | 179 | getVideoPrivacies () { |
179 | return this.videoPrivacies | 180 | return cloneDeep(this.videoPrivacies) |
180 | } | 181 | } |
181 | 182 | ||
182 | getVideoPlaylistPrivacies () { | 183 | getVideoPlaylistPrivacies () { |
183 | return this.videoPlaylistPrivacies | 184 | return cloneDeep(this.videoPlaylistPrivacies) |
184 | } | 185 | } |
185 | 186 | ||
186 | private loadAttributeEnum ( | 187 | private loadAttributeEnum ( |