Commit c6fc57f70589db3b77746a523628b797dae2341f
Show notification for post on issue of own repo
Charles Lehner committed on 8/2/2016, 12:43:13 AMParent: 03c0b16c9cda391b8331075baf79935aa18e67c8
Files changed
modules/notifications.js | changed |
modules/notifications.js | ||
---|---|---|
@@ -31,8 +31,10 @@ | ||
31 | 31 | function isOurMsg(id, cb) { |
32 | 32 | sbot_get(id, function (err, msg) { |
33 | 33 | if (err && err.name == 'NotFoundError') cb(null, false) |
34 | 34 | else if (err) cb(err) |
35 | + else if (msg.content.type === 'issue' || msg.content.type === 'project') | |
36 | + isOurMsg(msg.content.repo || msg.content.project, cb) | |
35 | 37 | else cb(err, msg.author in ourIds) |
36 | 38 | }) |
37 | 39 | } |
38 | 40 |
Built with git-ssb-web