Commit 877a71fa authored by Shpuld Shpludson's avatar Shpuld Shpludson

Merge branch '293' into 'develop'

Detect hashtag using rel instead of class

Closes #293

See merge request !908
parents 0ea1f6f5 9229f28e
Pipeline #15905 passed with stages
in 5 minutes and 21 seconds
......@@ -335,7 +335,7 @@ const Status = {
return
}
}
if (target.className.match(/hashtag/)) {
if (target.rel.match(/(?:^|\s)tag(?:$|\s)/) || target.className.match(/hashtag/)) {
// Extract tag name from link url
const tag = extractTagFromUrl(target.href)
if (tag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment