From cc35202911611d579c3892f3a281461f24748472 Mon Sep 17 00:00:00 2001 From: Yureka Date: Tue, 5 Apr 2022 15:34:27 +0300 Subject: [PATCH] Allow boosting own private posts --- src/components/retweet_button/retweet_button.js | 3 +++ src/components/retweet_button/retweet_button.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/retweet_button/retweet_button.js b/src/components/retweet_button/retweet_button.js index 2103fd0b..4f71af0a 100644 --- a/src/components/retweet_button/retweet_button.js +++ b/src/components/retweet_button/retweet_button.js @@ -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 } diff --git a/src/components/retweet_button/retweet_button.vue b/src/components/retweet_button/retweet_button.vue index 859ce499..e8a77e10 100644 --- a/src/components/retweet_button/retweet_button.vue +++ b/src/components/retweet_button/retweet_button.vue @@ -1,7 +1,7 @@