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:
Shpuld Shpludson 2019-08-14 05:24:19 +00:00
commit 877a71fa41

View file

@ -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) {