Commit 6180a473aee1464e6a772212751bfffa0e8b97c8
use channel asserted timestamps for updating from now on
Matt McKegg committed on 7/9/2018, 8:16:38 AMParent: 5abb67e92e0a7e62bca89816bcd2e6de98f565a3
Files changed
sbot/channels.js | changed |
sbot/channels.js | ||
---|---|---|
@@ -32,9 +32,10 @@ | ||
32 | 32 | if (!isLike && !isSubscription) { |
33 | 33 | var channels = getChannels(msg) |
34 | 34 | if (channels.length) { |
35 | 35 | return channels.reduce((result, channel) => { |
36 | - result[channel] = {timestamp: msg.timestamp} | |
36 | + var timestamp = Math.min(msg.value.timestamp, msg.timestamp) | |
37 | + result[channel] = {timestamp} | |
37 | 38 | return result |
38 | 39 | }, {}) |
39 | 40 | } |
40 | 41 | } |
Built with git-ssb-web