parent
98a4fbb96e
commit
d0b7f981d2
|
@ -121,7 +121,7 @@
|
||||||
// hydrate hashtag
|
// hydrate hashtag
|
||||||
if (tags && anchor.classList.contains('hashtag')) {
|
if (tags && anchor.classList.contains('hashtag')) {
|
||||||
for (const tag of tags) {
|
for (const tag of tags) {
|
||||||
if (anchor.getAttribute('href').toLowerCase().endsWith(`/tags/${tag.name.toLowerCase()}`)) {
|
if (anchor.getAttribute('href').toLowerCase().endsWith(`/${tag.name.toLowerCase()}`)) {
|
||||||
anchor.setAttribute('href', `/tags/${tag.name}`)
|
anchor.setAttribute('href', `/tags/${tag.name}`)
|
||||||
anchor.setAttribute('id', `status-content-link-${uuid}-${++count}`)
|
anchor.setAttribute('id', `status-content-link-${uuid}-${++count}`)
|
||||||
anchor.removeAttribute('target')
|
anchor.removeAttribute('target')
|
||||||
|
|
Loading…
Reference in a new issue