mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-13 20:14:42 +00:00
StatusContent: Try to get hashtag from dataset first.
This commit is contained in:
parent
5ac2c365a7
commit
d872d55832
1 changed files with 2 additions and 2 deletions
|
@ -176,8 +176,8 @@ const StatusContent = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (target.rel.match(/(?:^|\s)tag(?:$|\s)/) || target.className.match(/hashtag/)) {
|
if (target.rel.match(/(?:^|\s)tag(?:$|\s)/) || target.className.match(/hashtag/)) {
|
||||||
// Extract tag name from link url
|
// Extract tag name from dataset or link url
|
||||||
const tag = extractTagFromUrl(target.href)
|
const tag = target.dataset.tag || extractTagFromUrl(target.href)
|
||||||
if (tag) {
|
if (tag) {
|
||||||
const link = this.generateTagLink(tag)
|
const link = this.generateTagLink(tag)
|
||||||
this.$router.push(link)
|
this.$router.push(link)
|
||||||
|
|
Loading…
Reference in a new issue