Frontend: Fixed parent note visibility inheritance in the post form
ci/woodpecker/push/ociImagePush Pipeline was successful Details

This commit is contained in:
Natty 2023-11-08 02:28:10 +01:00
parent 4f6e6163cc
commit 7eb03d59fb
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 10 additions and 3 deletions

View File

@ -463,12 +463,19 @@ if (props.reply && props.reply.text != null) {
// //
if ( if (
props.reply && props.reply &&
["home", "followers", "specified"].includes(props.reply.visibility) ["home", "followers", "specified"].includes(
magLegacyVisibility(props.reply.visibility)
)
) { ) {
if (props.reply.visibility === "home" && visibility === "followers") { if (
magLegacyVisibility(props.reply.visibility) === "home" &&
visibility === "followers"
) {
visibility = "followers"; visibility = "followers";
} else if ( } else if (
["home", "followers"].includes(props.reply.visibility) && ["home", "followers"].includes(
magLegacyVisibility(props.reply.visibility)
) &&
visibility === "specified" visibility === "specified"
) { ) {
visibility = "specified"; visibility = "specified";