forked from AkkomaGang/akkoma-fe
Merge branch '293' into 'develop'
Detect hashtag using rel instead of class Closes #293 See merge request pleroma/pleroma-fe!908
This commit is contained in:
commit
877a71fa41
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ const Status = {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (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 link url
|
||||||
const tag = extractTagFromUrl(target.href)
|
const tag = extractTagFromUrl(target.href)
|
||||||
if (tag) {
|
if (tag) {
|
||||||
|
|
Loading…
Reference in a new issue