main
Bob Mottram 2022-09-03 17:22:56 +01:00
parent fb8b19aaef
commit 2477618d69
1 changed files with 2 additions and 4 deletions

View File

@ -829,8 +829,7 @@ def _add_mention(word_str: str, http_prefix: str, following: [],
'type': 'Mention' 'type': 'Mention'
} }
replace_mentions[word_str] = \ replace_mentions[word_str] = \
"<span class=\"h-card\"><a href=\"" + http_prefix + \ "<span class=\"h-card\"><a href=\"" + recipient_actor + \
"://" + possible_domain + "/@" + possible_nickname + \
"\" tabindex=\"10\" class=\"u-url mention\">@<span>" + \ "\" tabindex=\"10\" class=\"u-url mention\">@<span>" + \
possible_nickname + "</span></a></span>" possible_nickname + "</span></a></span>"
return True return True
@ -847,8 +846,7 @@ def _add_mention(word_str: str, http_prefix: str, following: [],
'type': 'Mention' 'type': 'Mention'
} }
replace_mentions[word_str] = \ replace_mentions[word_str] = \
"<span class=\"h-card\"><a href=\"" + http_prefix + \ "<span class=\"h-card\"><a href=\"" + recipient_actor + \
"://" + possible_domain + "/@" + possible_nickname + \
"\" tabindex=\"10\" class=\"u-url mention\">@<span>" + \ "\" tabindex=\"10\" class=\"u-url mention\">@<span>" + \
possible_nickname + "</span></a></span>" possible_nickname + "</span></a></span>"
return True return True