Mention tab index

main
Bob Mottram 2022-05-25 14:20:49 +01:00
parent 9593092c8f
commit 754c679075
2 changed files with 2 additions and 2 deletions

View File

@ -678,7 +678,7 @@ def _add_hash_tags(word_str: str, http_prefix: str, domain: str,
'type': 'Hashtag'
}
replace_hashtags[word_str] = "<a href=\"" + hashtag_url + \
"\" class=\"mention hashtag\" rel=\"tag\">#<span>" + \
"\" class=\"mention hashtag\" rel=\"tag\" tabindex=\"10\">#<span>" + \
hashtag + "</span></a>"
return True

View File

@ -877,7 +877,7 @@ def _dav_store_event(base_dir: str, nickname: str, domain: str,
next_str = post_id + "/replies?only_other_accounts=true&page=true"
content = \
'<p><span class=\"h-card\"><a href=\"' + actor2 + \
'\" class=\"u-url mention\">@<span>' + nickname + \
'\" class=\"u-url mention\" tabindex="10">@<span>' + nickname + \
'</span></a></span>' + remove_html(description) + '</p>'
event_json = {
"@context": post_context,