From 336e79c16e901044fb71e1254b922c9d44754fad Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Aug 2019 11:02:28 +0100 Subject: [PATCH] When reporting a post don't show the dropdown --- webinterface.py | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/webinterface.py b/webinterface.py index 23e72be51..a250d28cf 100644 --- a/webinterface.py +++ b/webinterface.py @@ -576,6 +576,8 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: [],reportUrl: st with open(baseDir+'/epicyon-profile.css', 'r') as cssFile: newPostCSS = cssFile.read() + if '?' in path: + path=path.split('?')[0] pathBase=path.replace('/newreport','').replace('/newpost','').replace('/newshare','').replace('/newunlisted','').replace('/newfollowers','').replace('/newdm','') scopeIcon='scope_public.png' @@ -634,12 +636,17 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: [],reportUrl: st else: mentionsStr+='@'+mentionNickname+'@'+mentionDomain+' ' - reportOptionOnDropdown='Report
Send to moderators
' - - # For moderation reports add a link to the post reported - if reportUrl: - mentionsStr='Reported link: '+reportUrl+'\n\n' - reportOptionOnDropdown='Report
Send to moderators
' + dropDownContent='' + if not reportUrl: + dropDownContent= \ + ' ' newPostForm+= \ '
' \ @@ -647,14 +654,8 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: [],reportUrl: st ' ' \ '
' \ ' ' \ ' ' \ ' ' \