From f6d1e5079a63ec685524580519c3b65212fb1f18 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 19 Mar 2018 18:05:51 -0700 Subject: [PATCH] add titles for mention links --- routes/_components/status/StatusAuthorName.html | 1 + routes/_components/status/StatusContent.html | 1 + routes/_components/status/StatusHeader.html | 1 + 3 files changed, 3 insertions(+) diff --git a/routes/_components/status/StatusAuthorName.html b/routes/_components/status/StatusAuthorName.html index aa40828..fc00e45 100644 --- a/routes/_components/status/StatusAuthorName.html +++ b/routes/_components/status/StatusAuthorName.html @@ -1,5 +1,6 @@ {{originalAccount.display_name || originalAccount.username}} diff --git a/routes/_components/status/StatusContent.html b/routes/_components/status/StatusContent.html index 6af4919..baf4e9b 100644 --- a/routes/_components/status/StatusContent.html +++ b/routes/_components/status/StatusContent.html @@ -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') diff --git a/routes/_components/status/StatusHeader.html b/routes/_components/status/StatusHeader.html index e259154..8dec912 100644 --- a/routes/_components/status/StatusHeader.html +++ b/routes/_components/status/StatusHeader.html @@ -7,6 +7,7 @@ Pinned toot {{else}} {{account.display_name || account.username}}