From 78f82586bb67cf9952d4f8ef4dc0a95ac2fbba7c Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Mon, 25 Jul 2022 20:30:09 +0300 Subject: [PATCH] Allow quoting own private posts --- src/components/quote_button/quote_button.js | 3 +++ src/components/quote_button/quote_button.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/quote_button/quote_button.js b/src/components/quote_button/quote_button.js index f5bf7e3a..8aea3566 100644 --- a/src/components/quote_button/quote_button.js +++ b/src/components/quote_button/quote_button.js @@ -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 } diff --git a/src/components/quote_button/quote_button.vue b/src/components/quote_button/quote_button.vue index 7a4c6b4b..83b7715b 100644 --- a/src/components/quote_button/quote_button.vue +++ b/src/components/quote_button/quote_button.vue @@ -4,7 +4,7 @@ class="QuoteButton" >