find inside status-content div only

This commit is contained in:
taehoon 2019-07-23 15:44:41 -04:00
parent 09efcb48a4
commit 17ad5bbdf9
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ const Status = {
}, },
linkClicked (event) { linkClicked (event) {
let { target } = event let { target } = event
target = target.tagName === 'A' ? target : target.closest('a') target = target.tagName === 'A' ? target : target.closest('.status-content a')
if (target) { if (target) {
if (target.className.match(/mention/)) { if (target.className.match(/mention/)) {
const href = target.href const href = target.href