Editing does not allow changing visibility

This commit is contained in:
Zhiyuan Zheng 2022-04-30 22:44:52 +02:00
parent 2aba971eb9
commit d23f454148
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ const composeParseState = (
}
}),
...assignVisibility(params.incomingStatus.visibility),
...(params.replyToStatus && { replyToStatus: params.replyToStatus })
...(params.replyToStatus && { replyToStatus: params.replyToStatus }),
visibilityLock: params.type === 'edit'
}
case 'reply':
const actualStatus = params.incomingStatus.reblog || params.incomingStatus