aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-08-14 05:24:19 +0000
committerShpuld Shpludson <shp@cock.li>2019-08-14 05:24:19 +0000
commit877a71fa4189c0976d64e2bbbc0634e01d677d85 (patch)
treeb55d59bb167428d45d9c6411b3071e6ceb624d4c /src
parent0ea1f6f582e18b09827fdac411efbb045a99eb9c (diff)
parent9229f28edbdcf33be3e053647f202a31f84c58ec (diff)
Merge branch '293' into 'develop'
Detect hashtag using rel instead of class Closes #293 See merge request pleroma/pleroma-fe!908
Diffstat (limited to 'src')
-rw-r--r--src/components/status/status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 3c172e5b..502d9583 100644
--- 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) {