StatusContent: Try to get hashtag from dataset first.

このコミットが含まれているのは:
lain 2020-06-04 15:50:44 +02:00
コミット d872d55832
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -176,8 +176,8 @@ const StatusContent = {
}
}
if (target.rel.match(/(?:^|\s)tag(?:$|\s)/) || target.className.match(/hashtag/)) {
// Extract tag name from link url
const tag = extractTagFromUrl(target.href)
// Extract tag name from dataset or link url
const tag = target.dataset.tag || extractTagFromUrl(target.href)
if (tag) {
const link = this.generateTagLink(tag)
this.$router.push(link)