Fix mentions so they don't include own posts

This commit is contained in:
Christian Bundy 2019-09-19 13:33:37 -07:00
parent 5d8560f881
commit 89dbed8812
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237
1 changed files with 5 additions and 2 deletions

View File

@ -155,8 +155,11 @@ module.exports = {
const messages = await new Promise((resolve, reject) => {
pull(
source,
pull.filter((msg) => typeof msg.value.content !== 'string' &&
msg.value.content.type === 'post'),
pull.filter((msg) =>
typeof msg.value.content !== 'string' &&
msg.value.content.type === 'post' &&
msg.value.author !== myFeedId
),
pull.take(60),
pull.collect((err, collectedMessages) => {
if (err) {