Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Take result of find and make boolean #4

Merged
merged 1 commit into from
May 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ function setHooks (inst) {
}

function isAMentionOfUser (record) {
return record.hasOwnProperty('mentions') && record.mentions.find(x => {
return record.hasOwnProperty('mentions') && !(record.mentions.find(x => {
return x.url == inst.userUrl
})
}) == undefined)
}

async function isNotificationIndexed (url) {
Expand Down