From 6a497a3d5379bd22f8dc215f79ed74c41db9835a Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sun, 25 Aug 2019 23:16:05 +0100
Subject: [PATCH] Replace characters
---
daemon.py | 4 ++--
webinterface.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/daemon.py b/daemon.py
index 66a5517b4..ac48983dc 100644
--- a/daemon.py
+++ b/daemon.py
@@ -1039,8 +1039,8 @@ class PubServer(BaseHTTPRequestHandler):
if m.startswith('mention='):
replyToList.append(m.replace('mention=',''))
inReplyToUrl=mentionsList[0]
- if inReplyToUrl.startswith('share:'):
- shareDescription=inReplyToUrl
+ if inReplyToUrl.startswith('sharedesc:'):
+ shareDescription=inReplyToUrl.replace('sharedesc:','').replace('%20',' ').replace('%40','@').replace('%3A',':').replace('%23','#')
self.path=self.path.split('?replydm=')[0]+'/newdm'
if self.server.debug:
print('DEBUG: replydm path '+self.path)
diff --git a/webinterface.py b/webinterface.py
index 787c80a46..533509d37 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -149,7 +149,7 @@ def htmlSearchSharedItems(baseDir: str,searchStr: str, \
sharedItemsForm+='Category: '+sharedItem['category']+' '
sharedItemsForm+='Location: '+sharedItem['location']+'
'
contactActor=httpPrefix+'://'+domainFull+'/users/'+contactNickname
- sharedItemsForm+='Contact'
+ sharedItemsForm+='
Contact'
sharedItemsForm+=''
if not resultsExist and currPage>1:
# previous page link, needs to be a POST