Browse Source

fix of wrong twistdays which was based on unfiltered promoted twists

readme-update
Simon Grim 8 years ago
parent
commit
e0a74abae6
  1. 4
      js/interface_home.js

4
js/interface_home.js

@ -268,7 +268,9 @@ function refreshTwistdayReminder() { @@ -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) {

Loading…
Cancel
Save