Browse Source

Fix time filter bug

Adrian Tache 5 years ago
parent
commit
1a5667123d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      YARCO.js

+ 1 - 1
YARCO.js

@@ -320,7 +320,7 @@ function filter_time(comment) {
     let time = comment.parentNode.parentNode.querySelector("time").innerHTML;
 
     //always exclude comments from the past day
-    if (time.indexOf("hour") !== -1) return false;
+    if (time.indexOf("days") === -1) return false;
 
     let num_days = time.split(" ");