diff --git a/webinterface.py b/webinterface.py index cd1c4dbaf..ea237446a 100644 --- a/webinterface.py +++ b/webinterface.py @@ -545,9 +545,9 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: []) -> str: """New post screen """ reportUrl=None - if '/newreport?=' in path: - reportUrl=path.split('/newreport?=')[1] - path=path.split('/newreport?=')[0] + if '/newreport?' in path: + reportUrl=path.split('/newreport?')[1] + path=path.split('/newreport?')[0] replyStr='' if not path.endswith('/newshare'): if not path.endswith('/newreport'):