From e0a74abae6030ca6ab0af5c8fd438f5e448364fc Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Sun, 31 Jul 2016 01:52:37 +0500 Subject: [PATCH] fix of wrong twistdays which was based on unfiltered promoted twists --- js/interface_home.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/interface_home.js b/js/interface_home.js index e59ad6e..5b1984f 100644 --- a/js/interface_home.js +++ b/js/interface_home.js @@ -268,7 +268,9 @@ function refreshTwistdayReminder() { }); for (var i = 0; i < posts.length; i++) { - if (followingUsers.indexOf(posts[i].userpost.n) > -1) { + if (followingUsers.indexOf(posts[i].userpost.n) > -1 + && posts[i].userpost.height !== posts[i].userpost.k) // to filter possible promoted twists which may appear suddenly (shame on you Miguel!) + { d.setTime(0); d.setUTCSeconds(posts[i].userpost.time); if (d.getMonth() === curMonth && d.getDate() === curDate) { @@ -333,7 +335,7 @@ function initWebTorrent() { console.log("onget:", torrentId, err, data) if (err || data === null) { // error reading blob, just add torrentId - console.log("WebTorrent auto-download: " + torrentId + + console.log("WebTorrent auto-download: " + torrentId + " (previously seeded as: " + twister.torrentIds[torrentId] + ")" ); WebTorrentClient.add(torrentId); } else {