瀏覽代碼

Fix time filter bug

Adrian Tache 5 年之前
父節點
當前提交
1a5667123d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(" ");