projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2f0eda
)
Fix federation when updating a video
author
Chocobozzz
<me@florianbigard.com>
Fri, 10 Jan 2020 09:10:48 +0000
(10:10 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Fri, 10 Jan 2020 09:30:36 +0000
(10:30 +0100)
server/models/video/video.ts
patch
|
blob
|
history
diff --git
a/server/models/video/video.ts
b/server/models/video/video.ts
index ac8c81ddf27024f23e9d467d7515aff7ce1e3a31..243871028a4a9526adc692befbbcb281d9cd0b0e 100644
(file)
--- a/
server/models/video/video.ts
+++ b/
server/models/video/video.ts
@@
-1802,7
+1802,9
@@
export class VideoModel extends Model<VideoModel> {
}
private static isPrivacyForFederation (privacy: VideoPrivacy) {
- return privacy === VideoPrivacy.PUBLIC || privacy === VideoPrivacy.UNLISTED
+ const castedPrivacy = parseInt(privacy + '', 10)
+
+ return castedPrivacy === VideoPrivacy.PUBLIC || castedPrivacy === VideoPrivacy.UNLISTED
}
static getCategoryLabel (id: number) {