Allow boosting own private posts #16

Merged
floatingghost merged 1 commit from :boost-priv into develop 2022-06-26 17:11:09 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit cc35202911 - Show all commits

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