Commit c2cef305 authored by Shpuld Shpludson's avatar Shpuld Shpludson

Merge branch '592' into 'develop'

Allow to click hyperlink inside markdown/html content

Closes #592

See merge request pleroma/pleroma-fe!891
parents e4489500 1cefaa84
...@@ -322,11 +322,8 @@ const Status = { ...@@ -322,11 +322,8 @@ const Status = {
this.error = undefined this.error = undefined
}, },
linkClicked (event) { linkClicked (event) {
let { target } = event const target = event.target.closest('.status-content a')
if (target.tagName === 'SPAN') { if (target) {
target = target.parentNode
}
if (target.tagName === 'A') {
if (target.className.match(/mention/)) { if (target.className.match(/mention/)) {
const href = target.href const href = target.href
const attn = this.status.attentions.find(attn => mentionMatchesUrl(attn, href)) const attn = this.status.attentions.find(attn => mentionMatchesUrl(attn, href))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment