From 075ddc34f1e3139d8a7b6c28802347ecdbe48f34 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 14 Apr 2019 13:18:56 -0400 Subject: [PATCH] #468 - shwo pin button for valid statuses (public & unlisted) --- src/components/extra_buttons/extra_buttons.js | 3 +++ src/components/extra_buttons/extra_buttons.vue | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js index 40bab2ab..0b12f993 100644 --- a/src/components/extra_buttons/extra_buttons.js +++ b/src/components/extra_buttons/extra_buttons.js @@ -44,6 +44,9 @@ const ExtraButtons = { }, ownStatus () { return this.status.user.id === this.currentUser.id + }, + canPin () { + return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted') } } } diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue index 13f8587b..7b86d257 100644 --- a/src/components/extra_buttons/extra_buttons.vue +++ b/src/components/extra_buttons/extra_buttons.vue @@ -13,10 +13,10 @@ >