This commit is contained in:
Henry Jameson 2026-07-22 14:21:51 +03:00
commit ed3094ec47
2 changed files with 5 additions and 5 deletions

View file

@ -309,7 +309,7 @@ const PostStatusForm = {
defaultNewStatus.mentions = '' defaultNewStatus.mentions = ''
} }
defaultNewStatus.spoilerText = this.replySubject ?? '' defaultNewStatus.spoilerText = this.repliedSubjectString ?? ''
defaultNewStatus.nsfw = this.userDefaultSensitive defaultNewStatus.nsfw = this.userDefaultSensitive
defaultNewStatus.visibility = scope defaultNewStatus.visibility = scope
defaultNewStatus.contentType = this.userDefaultPostContentType defaultNewStatus.contentType = this.userDefaultPostContentType
@ -331,9 +331,9 @@ const PostStatusForm = {
? this.replyTo ? this.replyTo
: undefined : undefined
}, },
replySubject() { repliedSubjectString() {
if (!this.replySubject) return null if (!this.repliedSubject) return null
const decodedSummary = ldUnescape(this.replySubject) const decodedSummary = ldUnescape(this.repliedSubject)
const behavior = this.mergedConfig.subjectLineBehavior const behavior = this.mergedConfig.subjectLineBehavior
const startsWithRe = decodedSummary.match(/^re[: ]/i) const startsWithRe = decodedSummary.match(/^re[: ]/i)
if ((behavior !== 'noop' && startsWithRe) || behavior === 'masto') { if ((behavior !== 'noop' && startsWithRe) || behavior === 'masto') {

View file

@ -233,7 +233,7 @@
v-if="!disableVisibilitySelector" v-if="!disableVisibilitySelector"
:show-all="showAllScopes" :show-all="showAllScopes"
:user-default="userDefaultScope" :user-default="userDefaultScope"
:original-scope="copyMessageScope" :original-scope="repliedScope"
:initial-scope="newStatus.visibility" :initial-scope="newStatus.visibility"
:on-scope-change="changeVis" :on-scope-change="changeVis"
/> />