소스 검색

:bug: 9007199254740992

LI JIAHAO 6 년 전
부모
커밋
5f77af20e2
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      dist/twitter.js
  2. 2 2
      src/twitter.ts

+ 2 - 2
dist/twitter.js

@@ -65,7 +65,7 @@ class default_1 {
                 if (tweets.length === 0)
                     return;
                 if (lock.threads[lock.feed[lock.workon]].offset === -1) {
-                    lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str;
+                    lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str;
                     return;
                 }
                 if (lock.threads[lock.feed[lock.workon]].offset === 0)
@@ -82,7 +82,7 @@ class default_1 {
                         });
                     });
                 }, this.webshotDelay)
-                    .then(() => lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str);
+                    .then(() => lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str);
             })
                 .then(() => {
                 lock.workon++;

+ 2 - 2
src/twitter.ts

@@ -96,7 +96,7 @@ export default class {
     promise.then((tweets: any) => {
       if (tweets.length === 0) return;
       if (lock.threads[lock.feed[lock.workon]].offset === -1) {
-        lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str;
+        lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str;
         return;
       }
       if (lock.threads[lock.feed[lock.workon]].offset === 0) tweets.splice(1);
@@ -112,7 +112,7 @@ export default class {
           });
         });
       }, this.webshotDelay)
-        .then(() => lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str);
+        .then(() => lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str);
 
     })
       .then(() => {