forked from AkkomaGang/akkoma-fe
Merge branch '592' into 'develop'
Allow to click hyperlink inside markdown/html content Closes #592 See merge request pleroma/pleroma-fe!891
This commit is contained in:
commit
c2cef3055d
1 changed files with 2 additions and 5 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue