Procházet zdrojové kódy

Fix time filter bug

Adrian Tache před 5 roky
rodič
revize
1a5667123d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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(" ");