Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 22b9fa1

Browse files
committed
include all gatherings that you have created
1 parent 9750bc4 commit 22b9fa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sbot/gatherings.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,19 @@ function bumpFilter (msg) {
7979

8080
function ApplyFilterResult ({ ssb }) {
8181
return pull.asyncMap((msg, cb) => {
82+
var isYours = ssb.id === msg.value.author
8283
ssb.patchwork.contacts.isFollowing({ source: ssb.id, dest: msg.value.author }, (err, followingAuthor) => {
8384
if (err) return cb(err)
8485
async.filterSeries(msg.gathering && (msg.gathering.attending || []), (dest, cb) => {
8586
ssb.patchwork.contacts.isFollowing({ source: ssb.id, dest }, cb)
8687
}, (err, followingAttending) => {
8788
if (err) return cb(err)
8889
var hasTitle = !!msg.gathering.title
89-
if ((followingAttending.length || followingAuthor) && hasTitle) {
90+
if ((followingAttending.length || followingAuthor || isYours) && hasTitle) {
9091
msg.filterResult = {
9192
followingAttending,
9293
followingAuthor,
94+
isYours,
9395
hasTitle
9496
}
9597
}

0 commit comments

Comments
 (0)