Merge pull request #3380 from h3poteto/fix/locked

Fix visibility of boosted status
This commit is contained in:
AkiraFukushima 2022-05-28 14:09:14 +09:00 committed by GitHub
commit cfe324840f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -112,14 +112,14 @@
<el-button type="text" @click="openReply()" class="reply" :title="$t('cards.toot.reply')" :aria-label="$t('cards.toot.reply')">
<font-awesome-icon icon="reply" size="sm" />
</el-button>
<el-button v-show="locked" type="text" class="locked">
<el-button v-if="locked" type="text" class="locked">
<font-awesome-icon icon="lock" size="sm" />
</el-button>
<el-button v-show="directed" type="text" class="directed">
<el-button v-else-if="directed" type="text" class="directed">
<font-awesome-icon icon="envelope" size="sm" />
</el-button>
<el-button
v-show="!locked && !directed"
v-else
type="text"
@click="changeReblog(originalMessage)"
:class="originalMessage.reblogged ? 'reblogged' : 'reblog'"
@ -361,10 +361,10 @@ export default defineComponent({
return Filtered(originalMessage.value.content, filters.value)
})
const locked = computed(() => {
return message.value.visibility === 'private'
return originalMessage.value.visibility === 'private'
})
const directed = computed(() => {
return message.value.visibility === 'direct'
return originalMessage.value.visibility === 'direct'
})
const quoteSupported = computed(() => {
return QuoteSupported(sns.value, account.value.domain)