forked from AkkomaGang/akkoma-fe
Allow boosting own private posts
This commit is contained in:
parent
9827c0e81e
commit
cc35202911
2 changed files with 4 additions and 1 deletions
|
@ -24,6 +24,9 @@ const RetweetButton = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
isOwn () {
|
||||||
|
return this.status.user.id === this.$store.state.users.currentUser.id
|
||||||
|
},
|
||||||
mergedConfig () {
|
mergedConfig () {
|
||||||
return this.$store.getters.mergedConfig
|
return this.$store.getters.mergedConfig
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="RetweetButton">
|
<div class="RetweetButton">
|
||||||
<button
|
<button
|
||||||
v-if="visibility !== 'private' && visibility !== 'direct' && loggedIn"
|
v-if="(visibility !== 'private' || isOwn) && visibility !== 'direct' && loggedIn"
|
||||||
class="button-unstyled interactive"
|
class="button-unstyled interactive"
|
||||||
:class="status.repeated && '-repeated'"
|
:class="status.repeated && '-repeated'"
|
||||||
:title="$t('tool_tip.repeat')"
|
:title="$t('tool_tip.repeat')"
|
||||||
|
|
Loading…
Reference in a new issue