Status: We don't have the href, but we do have the id.

This commit is contained in:
lain 2019-04-10 18:44:47 +02:00
parent 52a20ba97e
commit 3a8db751b0
1 changed files with 2 additions and 2 deletions

View File

@ -290,8 +290,8 @@ const Status = {
}
if (target.tagName === 'A') {
if (target.className.match(/mention/)) {
const href = target.href
const attn = this.status.attentions.find(attn => mentionMatchesUrl(attn, href))
const userId = target.dataset.user
const attn = this.status.attentions.find(attn => attn.id === userId)
if (attn) {
event.stopPropagation()
event.preventDefault()