Commit 05e3f329df1f7bdbff0e2f0846fe6718a6df21fc
feed.pull: check timestamp is a number before using
Matt McKegg committed on 6/21/2017, 4:19:39 AMParent: d06c60e3b13b5795e7acad4aff8901f5039efb83
Files changed
feed/pull/channel.js | changed |
feed/pull/mentions.js | changed |
feed/pull/private.js | changed |
feed/pull/channel.js | ||
---|---|---|
@@ -20,9 +20,9 @@ | ||
20 | 20 … | |
21 | 21 … | var filter = { |
22 | 22 … | dest: `#${channel}`, |
23 | 23 … | value: { |
24 | - timestamp: lt ? {$lt: lt, $gt: 0} : {$gt: 0} | |
24 … | + timestamp: typeof lt === 'number' ? {$lt: lt, $gt: 0} : {$gt: 0} | |
25 | 25 … | } |
26 | 26 … | } |
27 | 27 … | |
28 | 28 … | return api.sbot.pull.backlinks(extend(opts, { |
Built with git-ssb-web