Skip to content

Commit

Permalink
Fix federation when updating video privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Apr 26, 2024
1 parent afb2827 commit d72ef2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core/controllers/api/videos/update.ts
Expand Up @@ -192,7 +192,7 @@ async function updateVideoPrivacy (options: {
transaction: Transaction
}) {
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
setVideoPrivacy(videoInstance, newPrivacy)
Expand Down

0 comments on commit d72ef2a

Please sign in to comment.