diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index dbb0ebb62..a34e9a3ec 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -309,7 +309,7 @@ const PostStatusForm = { defaultNewStatus.mentions = '' } - defaultNewStatus.spoilerText = this.replySubject ?? '' + defaultNewStatus.spoilerText = this.repliedSubjectString ?? '' defaultNewStatus.nsfw = this.userDefaultSensitive defaultNewStatus.visibility = scope defaultNewStatus.contentType = this.userDefaultPostContentType @@ -331,9 +331,9 @@ const PostStatusForm = { ? this.replyTo : undefined }, - replySubject() { - if (!this.replySubject) return null - const decodedSummary = ldUnescape(this.replySubject) + repliedSubjectString() { + if (!this.repliedSubject) return null + const decodedSummary = ldUnescape(this.repliedSubject) const behavior = this.mergedConfig.subjectLineBehavior const startsWithRe = decodedSummary.match(/^re[: ]/i) if ((behavior !== 'noop' && startsWithRe) || behavior === 'masto') { diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index f8d34f73c..aef20e0cc 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -233,7 +233,7 @@ v-if="!disableVisibilitySelector" :show-all="showAllScopes" :user-default="userDefaultScope" - :original-scope="copyMessageScope" + :original-scope="repliedScope" :initial-scope="newStatus.visibility" :on-scope-change="changeVis" />