logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: c2cef3055d839b610e4d972dcb389fa19cc06abb
parent: e448950023936b5b3e43b025c3fddce12534c71c
Author: Shpuld Shpludson <shp@cock.li>
Date:   Wed, 24 Jul 2019 13:23:04 +0000

Merge branch '592' into 'develop'

Allow to click hyperlink inside markdown/html content

Closes #592

See merge request pleroma/pleroma-fe!891

Diffstat:

Msrc/components/status/status.js7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 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))