aboutsummaryrefslogtreecommitdiff
path: root/src/components/status
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-07-24 13:23:04 +0000
committerShpuld Shpludson <shp@cock.li>2019-07-24 13:23:04 +0000
commitc2cef3055d839b610e4d972dcb389fa19cc06abb (patch)
tree6a80d2dbc11d090ed08f77f382369e5d2dc1cca8 /src/components/status
parente448950023936b5b3e43b025c3fddce12534c71c (diff)
parent1cefaa8446a45273f95649844fa0172221ecee38 (diff)
Merge branch '592' into 'develop'
Allow to click hyperlink inside markdown/html content Closes #592 See merge request pleroma/pleroma-fe!891
Diffstat (limited to 'src/components/status')
-rw-r--r--src/components/status/status.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index faefb80e..3c172e5b 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -322,11 +322,8 @@ const Status = {
this.error = undefined
},
linkClicked (event) {
- let { target } = event
- if (target.tagName === 'SPAN') {
- target = target.parentNode
- }
- if (target.tagName === 'A') {
+ const target = event.target.closest('.status-content a')
+ if (target) {
if (target.className.match(/mention/)) {
const href = target.href
const attn = this.status.attentions.find(attn => mentionMatchesUrl(attn, href))