Allow quoting own private posts
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Sol Fisher Romanoff 2022-07-25 20:30:09 +03:00
parent a2541bb4e0
commit 78f82586bb
Signed by untrusted user who does not match committer: nbsp
GPG key ID: 9D3F2B64F2341B62
2 changed files with 4 additions and 1 deletions

View file

@ -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
}

View file

@ -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')"