소스 검색

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(" ");