mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-05-11 06:59: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',
|
name: 'QuoteButton',
|
||||||
props: ['status', 'quoting', 'visibility'],
|
props: ['status', 'quoting', 'visibility'],
|
||||||
computed: {
|
computed: {
|
||||||
|
isOwn () {
|
||||||
|
return this.status.user.id === this.$store.state.users.currentUser.id
|
||||||
|
},
|
||||||
loggedIn () {
|
loggedIn () {
|
||||||
return !!this.$store.state.users.currentUser
|
return !!this.$store.state.users.currentUser
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
class="QuoteButton"
|
class="QuoteButton"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
v-if="visibility === 'public' || visibility === 'unlisted'"
|
v-if="(visibility !== 'private' || isOwn) && visibility !== 'direct'"
|
||||||
class="button-unstyled interactive"
|
class="button-unstyled interactive"
|
||||||
:class="{'-active': quoting}"
|
:class="{'-active': quoting}"
|
||||||
:title="$t('tool_tip.quote')"
|
:title="$t('tool_tip.quote')"
|
||||||
|
|
Loading…
Reference in a new issue