mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-05-10 22:49:14 +08:00
Allow quoting own private posts
This commit is contained in:
parent
a2541bb4e0
commit
78f82586bb
2 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,9 @@ const QuoteButton = {
|
|||
name: 'QuoteButton',
|
||||
props: ['status', 'quoting', 'visibility'],
|
||||
computed: {
|
||||
isOwn () {
|
||||
return this.status.user.id === this.$store.state.users.currentUser.id
|
||||
},
|
||||
loggedIn () {
|
||||
return !!this.$store.state.users.currentUser
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
class="QuoteButton"
|
||||
>
|
||||
<button
|
||||
v-if="visibility === 'public' || visibility === 'unlisted'"
|
||||
v-if="(visibility !== 'private' || isOwn) && visibility !== 'direct'"
|
||||
class="button-unstyled interactive"
|
||||
:class="{'-active': quoting}"
|
||||
:title="$t('tool_tip.quote')"
|
||||
|
|
Loading…
Reference in a new issue