From 22e562bd59b7a230f11e217324567af79bda626a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 31 Jul 2019 16:12:30 +0100 Subject: [PATCH] Only show share option on dropdown if this is not a reply --- webinterface.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index 10c4d7831..7f6c4cfa6 100644 --- a/webinterface.py +++ b/webinterface.py @@ -134,6 +134,11 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str) -> str: '' newPostForm=htmlHeader(newPostCSS) + + # only show the share option if this is not a reply + shareOptionOnDropdown='' + if not replyStr: + shareOptionOnDropdown='Share
Describe a shared item
' newPostForm+= \ '
' \ '
' \ @@ -145,8 +150,8 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str) -> str: ' Public
Visible to anyone
' \ ' Unlisted
Not on public timeline
' \ ' Followers Only
Only to followers
' \ - ' Direct Message
Only to mentioned people
' \ - ' Share
Describe a shared item
' \ + ' Direct Message
Only to mentioned people
'+ \ + shareOptionOnDropdown+ \ '
' \ ' ' \ ' ' \