commit: 877a71fa4189c0976d64e2bbbc0634e01d677d85
parent: 0ea1f6f582e18b09827fdac411efbb045a99eb9c
Author: Shpuld Shpludson <shp@cock.li>
Date: Wed, 14 Aug 2019 05:24:19 +0000
Merge branch '293' into 'develop'
Detect hashtag using rel instead of class
Closes #293
See merge request pleroma/pleroma-fe!908
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/status/status.js b/src/components/status/status.js
@@ -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) {