Allow boosting own private posts
ci/woodpecker/pr/woodpecker Pipeline was successful Details

This commit is contained in:
Yureka 2022-04-05 15:34:27 +03:00 committed by Sol Fisher Romanoff
parent 9827c0e81e
commit cc35202911
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

@ -24,6 +24,9 @@ const RetweetButton = {
}
},
computed: {
isOwn () {
return this.status.user.id === this.$store.state.users.currentUser.id
},
mergedConfig () {
return this.$store.getters.mergedConfig
}

View File

@ -1,7 +1,7 @@
<template>
<div class="RetweetButton">
<button
v-if="visibility !== 'private' && visibility !== 'direct' && loggedIn"
v-if="(visibility !== 'private' || isOwn) && visibility !== 'direct' && loggedIn"
class="button-unstyled interactive"
:class="status.repeated && '-repeated'"
:title="$t('tool_tip.repeat')"