mirror of https://gitlab.com/bashrc2/epicyon
Return to ?
parent
67a6aaa834
commit
cada7845a4
|
@ -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=', '')
|
||||
|
|
|
@ -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 += \
|
||||
' <a class="imageAnchor" href="/users/' + \
|
||||
|
@ -396,7 +396,7 @@ def _getEditIconHtml(baseDir: str, nickname: str, domainFull: str,
|
|||
nickname + \
|
||||
'/tlblogs?editblogpost=' + \
|
||||
postId.split('/statuses/')[1] + \
|
||||
'?actor=' + actorNickname + \
|
||||
';actor=' + actorNickname + \
|
||||
'" title="' + editBlogPostStr + '">' + \
|
||||
'<img loading="lazy" title="' + \
|
||||
editBlogPostStr + '" alt="' + editBlogPostStr + \
|
||||
|
|
Loading…
Reference in New Issue