add titles for mention links
This commit is contained in:
parent
00fd911579
commit
f6d1e5079a
|
@ -1,5 +1,6 @@
|
|||
<a class="status-author-name {{isStatusInNotification ? 'status-in-notification' : '' }} {{isStatusInOwnThread ? 'status-in-own-thread' : ''}}"
|
||||
href="/accounts/{{originalAccountId}}"
|
||||
title="{{'@' + originalAccount.acct}}"
|
||||
focus-key="{{focusKey}}"
|
||||
>
|
||||
{{originalAccount.display_name || originalAccount.username}}
|
||||
|
|
|
@ -118,6 +118,7 @@
|
|||
for (let anchorTag of anchorTags) {
|
||||
if (anchorTag.getAttribute('href') === mention.url) {
|
||||
anchorTag.setAttribute('href', `/accounts/${mention.id}`)
|
||||
anchorTag.setAttribute('title', `@${mention.acct}`)
|
||||
anchorTag.setAttribute('focus-key', `status-content-link-${uuid}-${++count}`)
|
||||
anchorTag.removeAttribute('target')
|
||||
anchorTag.removeAttribute('rel')
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
Pinned toot
|
||||
{{else}}
|
||||
<a href="/accounts/{{accountId}}"
|
||||
title="{{'@' + account.acct}}"
|
||||
focus-key="{{focusKey}}" >
|
||||
{{account.display_name || account.username}}
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue