diff --git a/src/client/components/note.vue b/src/client/components/note.vue index f30173200..ab9d60e3a 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -22,7 +22,7 @@
@@ -196,6 +196,10 @@ export default Vue.extend({ return this.$store.getters.isSignedIn && (this.$store.state.i.id === this.appearNote.userId); }, + isMyRenote(): boolean { + return this.$store.getters.isSignedIn && (this.$store.state.i.id === this.note.userId); + }, + canRenote(): boolean { return ['public', 'home'].includes(this.appearNote.visibility) || this.isMyNote; }, @@ -617,7 +621,7 @@ export default Vue.extend({ }, showRenoteMenu(viaKeyboard = false) { - if (!this.$store.getters.isSignedIn || (this.$store.state.i.id !== this.note.userId)) return; + if (!this.isMyRenote) return; this.$root.menu({ items: [{ text: this.$t('unrenote'),