From ca2e77c14dc762c399a6cb520d78b5be15d1c732 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 24 Aug 2019 14:02:32 +0100 Subject: [PATCH] Extract report link --- webinterface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index bf236395c..55e826a91 100644 --- a/webinterface.py +++ b/webinterface.py @@ -546,7 +546,10 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: []) -> str: """ reportUrl=None if '/newreport?' in path: - reportUrl=path.split('/newreport?')[1] + if '?url=' in path: + reportUrl=path.split('?url=')[1] + if ';' in reportUrl: + reportUrl=reportUrl.split(';')[0] path=path.split('/newreport?')[0]+'/newreport' replyStr='' if not path.endswith('/newshare'):