Semicolon separators

main
Bob Mottram 2021-09-19 17:20:12 +01:00
parent 076f1ff87c
commit 8672c05bda
4 changed files with 8 additions and 8 deletions

View File

@ -13921,9 +13921,9 @@ class PubServer(BaseHTTPRequestHandler):
if '?replydm=' in self.path:
inReplyToUrl = self.path.split('?replydm=')[1]
inReplyToUrl = urllib.parse.unquote_plus(inReplyToUrl)
if '?' in inReplyToUrl:
if ';' in inReplyToUrl:
# multiple parameters
mentionsList = inReplyToUrl.split('?')
mentionsList = inReplyToUrl.split(';')
for m in mentionsList:
if m.startswith('mention='):
replyHandle = m.replace('mention=', '')

View File

@ -53,7 +53,7 @@ def _getLeftColumnShares(baseDir: str,
ctr = 0
for published, item in sharesJson.items():
sharedesc = item['displayName']
if '<' in sharedesc or '?' in sharedesc:
if '<' in sharedesc or ';' in sharedesc:
continue
shareId = item['shareId']
# selecting this link calls htmlShowShare
@ -95,7 +95,7 @@ def _getLeftColumnWanted(baseDir: str,
ctr = 0
for published, item in sharesJson.items():
sharedesc = item['displayName']
if '<' in sharedesc or '?' in sharedesc:
if '<' in sharedesc or ';' in sharedesc:
continue
shareId = item['shareId']
# selecting this link calls htmlShowShare

View File

@ -981,18 +981,18 @@ def htmlIndividualShare(domain: str, shareId: str,
item['itemPrice'] + ' ' + item['itemCurrency']
profileStr += '</p>\n'
sharedesc = item['displayName']
if '<' not in sharedesc and '?' not in sharedesc:
if '<' not in sharedesc and ';' not in sharedesc:
if showContact:
contactActor = item['actor']
profileStr += \
'<p>' + \
'<a href="' + actor + \
'?replydm=sharedesc:' + sharedesc + \
'?mention=' + contactActor + '"><button class="button">' + \
';mention=' + contactActor + '"><button class="button">' + \
translate['Contact'] + '</button></a>\n'
profileStr += \
'<a href="' + contactActor + '"><button class="button">' + \
translate['View'] + '</button></a>\n'
translate['Profile'] + '</button></a>\n'
if removeButton and domain in shareId:
if sharesFileType == 'shares':
profileStr += \

View File

@ -1339,7 +1339,7 @@ def htmlSearchResultShare(baseDir: str, sharedItem: {}, translate: {},
sharedItemsForm += \
'<p>' + \
'<a href="' + actor + '?replydm=sharedesc:' + \
sharedItem['displayName'] + '?mention=' + contactActor + \
sharedItem['displayName'] + ';mention=' + contactActor + \
'"><button class="button">' + contactTitleStr + \
'</button></a>\n' + \
'<a href="' + contactActor + '"><button class="button">' + \