Commit 927a196d2a39ba986e263d436ad1eddf5d880f1e
silence messages from the future
Ev Bogue committed on 7/18/2018, 4:07:13 PMParent: 392e50fcc67f4ad4b873fc95b096e3018404f255
Files changed
views.js | changed |
views.js | ||
---|---|---|
@@ -372,9 +372,13 @@ | ||
372 | 372 | return pull( |
373 | 373 | Next(sbot.query, opts, ['value', 'timestamp']), |
374 | 374 | pull.map(function (msg) { |
375 | 375 | if (msg.value) { |
376 | - return render(msg) | |
376 | + if (msg.value.timestamp > Date.now()) { | |
377 | + return h('div.future') | |
378 | + } else { | |
379 | + return render(msg) | |
380 | + } | |
377 | 381 | } |
378 | 382 | }) |
379 | 383 | ) |
380 | 384 | } |
Built with git-ssb-web