From 3d8cdcd6499aa53eb6c6693142b3d61e7752047a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 12 May 2018 15:45:50 -0700 Subject: [PATCH] only allow public/unlisted statuses to be pinned (#290) fixes #264 --- .../_components/dialog/components/StatusOptionsDialog.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/_components/dialog/components/StatusOptionsDialog.html b/routes/_components/dialog/components/StatusOptionsDialog.html index a66d7c0..635a39f 100644 --- a/routes/_components/dialog/components/StatusOptionsDialog.html +++ b/routes/_components/dialog/components/StatusOptionsDialog.html @@ -62,16 +62,17 @@ export default { // end copypasta (StatusOptionsDialog.html / AccountProfileOptionsDialog.html) // pinLabel: ({pinned, isUser}) => isUser ? (pinned ? 'Unpin from profile' : 'Pin to profile') : '', + visibility: ({status}) => status.visibility, items: ({ blockLabel, blocking, blockIcon, muteLabel, muteIcon, followLabel, followIcon, - following, followRequested, pinLabel, isUser + following, followRequested, pinLabel, isUser, visibility }) => ([ isUser && { key: 'delete', label: 'Delete', icon: '#fa-trash' }, - isUser && { + visibility !== 'private' && visibility !== 'direct' && isUser && { key: 'pin', label: pinLabel, icon: '#fa-thumb-tack'