Frontend: Fixed parent note visibility inheritance in the post form
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
This commit is contained in:
parent
4f6e6163cc
commit
7eb03d59fb
|
@ -463,12 +463,19 @@ if (props.reply && props.reply.text != null) {
|
|||
// 公開以外へのリプライ時は元の公開範囲を引き継ぐ
|
||||
if (
|
||||
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";
|
||||
} else if (
|
||||
["home", "followers"].includes(props.reply.visibility) &&
|
||||
["home", "followers"].includes(
|
||||
magLegacyVisibility(props.reply.visibility)
|
||||
) &&
|
||||
visibility === "specified"
|
||||
) {
|
||||
visibility = "specified";
|
||||
|
|
Loading…
Reference in New Issue