diff --git a/daemon.py b/daemon.py index 360368134..37fc2c7ec 100644 --- a/daemon.py +++ b/daemon.py @@ -13925,9 +13925,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=', '') diff --git a/webapp_post.py b/webapp_post.py index 712b86123..21348a7a7 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -313,14 +313,14 @@ def _getReplyIconHtml(baseDir: str, nickname: str, domain: str, if postJsonObject['object'].get('attributedTo'): if isinstance(postJsonObject['object']['attributedTo'], str): replyToLink += \ - '?mention=' + postJsonObject['object']['attributedTo'] + ';mention=' + postJsonObject['object']['attributedTo'] content = getBaseContentFromPost(postJsonObject, systemLanguage) if content: mentionedActors = getMentionsFromHtml(content) if mentionedActors: for actorUrl in mentionedActors: - if '?mention=' + actorUrl not in replyToLink: - replyToLink += '?mention=' + actorUrl + if ';mention=' + actorUrl not in replyToLink: + replyToLink += ';mention=' + actorUrl if len(replyToLink) > 500: break replyToLink += pageNumberParam @@ -331,7 +331,7 @@ def _getReplyIconHtml(baseDir: str, nickname: str, domain: str, replyToThisPostStr = translate[replyToThisPostStr] conversationStr = '' if conversationId: - conversationStr = '?conversationId=' + conversationId + conversationStr = ';conversationId=' + conversationId if isPublicRepeat: replyStr += \ ' ' + \ '