mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-09-11 21:47:09 +03:00
Fix federation when updating video privacy
This commit is contained in:
parent
afb28272f5
commit
d72ef2a2b9
@ -192,7 +192,7 @@ async function updateVideoPrivacy (options: {
|
|||||||
transaction: Transaction
|
transaction: Transaction
|
||||||
}) {
|
}) {
|
||||||
const { videoInstance, videoInfoToUpdate, hadPrivacyForFederation, transaction } = options
|
const { videoInstance, videoInfoToUpdate, hadPrivacyForFederation, transaction } = options
|
||||||
const isNewVideoForFederation = isNewVideoPrivacyForFederation(videoInfoToUpdate.privacy, videoInfoToUpdate.privacy)
|
const isNewVideoForFederation = isNewVideoPrivacyForFederation(videoInstance.privacy, videoInfoToUpdate.privacy)
|
||||||
|
|
||||||
const newPrivacy = forceNumber(videoInfoToUpdate.privacy) as VideoPrivacyType
|
const newPrivacy = forceNumber(videoInfoToUpdate.privacy) as VideoPrivacyType
|
||||||
setVideoPrivacy(videoInstance, newPrivacy)
|
setVideoPrivacy(videoInstance, newPrivacy)
|
||||||
|
Loading…
Reference in New Issue
Block a user