Replace ?

merge-requests/30/head
Bob Mottram 2021-09-21 14:03:08 +01:00
parent b3d0bd223b
commit f9aa3a0efb
1 changed files with 3 additions and 3 deletions

View File

@ -313,14 +313,14 @@ def _getReplyIconHtml(baseDir: str, nickname: str, domain: str,
if postJsonObject['object'].get('attributedTo'): if postJsonObject['object'].get('attributedTo'):
if isinstance(postJsonObject['object']['attributedTo'], str): if isinstance(postJsonObject['object']['attributedTo'], str):
replyToLink += \ replyToLink += \
';mention=' + postJsonObject['object']['attributedTo'] '?mention=' + postJsonObject['object']['attributedTo']
content = getBaseContentFromPost(postJsonObject, systemLanguage) content = getBaseContentFromPost(postJsonObject, systemLanguage)
if content: if content:
mentionedActors = getMentionsFromHtml(content) mentionedActors = getMentionsFromHtml(content)
if mentionedActors: if mentionedActors:
for actorUrl in mentionedActors: for actorUrl in mentionedActors:
if ';mention=' + actorUrl not in replyToLink: if '?mention=' + actorUrl not in replyToLink:
replyToLink += ';mention=' + actorUrl replyToLink += '?mention=' + actorUrl
if len(replyToLink) > 500: if len(replyToLink) > 500:
break break
replyToLink += pageNumberParam replyToLink += pageNumberParam