Add gathering title

This commit is contained in:
Jacob Karlsson
2018-07-07 12:41:38 +02:00
parent d09eab73ae
commit 3c608e0159
4 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -411,7 +411,6 @@ exports.init = function (sbot, config) {
}}],
index: 'DTA'
}),
//pull.map(o => { console.log('bl:', o.value.content); return o }),
// Only grab messages about attendance
pull.filter(o => o.value.content.attendee !== undefined),
// Filter "can't attend"-messages
@@ -419,7 +418,9 @@ exports.init = function (sbot, config) {
pull.unique(o => o.value.content.attendee.link),
pull.collect((err, arr) => {
if (err) { cb(err) }
msg.value.content.numberAttending = arr.length
cb(null, msg)
})
)