File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed
Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,14 @@ updates:
99 labels :
1010 - dependencies
1111 ignore :
12+ - dependency-name : fanfou-sdk
13+ versions : ['>=5.0.0']
1214 - dependency-name : got
1315 versions : ['>=12.0.0']
1416 - dependency-name : ip-regex
1517 versions : ['>=5.0.0']
18+ - dependency-name : parse-torrent
19+ versions : ['>=10.0.0']
1620 - dependency-name : remark
1721 versions : ['>=14.0.0']
1822 - dependency-name : remark-frontmatter
Original file line number Diff line number Diff line change @@ -21,6 +21,18 @@ module.exports = async (ctx) => {
2121 date : $el . children ( ) . first ( ) . find ( 'small' ) . children ( ) . remove ( ) . end ( ) . text ( ) . slice ( 3 ) ,
2222 } ;
2323 } ) ;
24+ const latestSubReplies = $ ( '.sub_reply_bg' )
25+ . toArray ( )
26+ . map ( ( el ) => {
27+ const $el = $ ( el ) ;
28+ return {
29+ id : $el . attr ( 'id' ) ,
30+ author : $el . find ( '.userName .l' ) . text ( ) ,
31+ content : $el . find ( '.cmt_sub_content' ) . html ( ) ,
32+ date : $el . children ( ) . first ( ) . find ( 'small' ) . children ( ) . remove ( ) . end ( ) . text ( ) . slice ( 3 ) ,
33+ } ;
34+ } ) ;
35+ const finalLatestReplies = latestReplies . concat ( latestSubReplies ) . sort ( ( a , b ) => ( a . id < b . id ? 1 : - 1 ) ) ;
2436
2537 const postTopic = {
2638 title,
@@ -34,7 +46,7 @@ module.exports = async (ctx) => {
3446 title : `${ title } 的最新回复` ,
3547 link,
3648 item : [
37- ...latestReplies . map ( ( c ) => ( {
49+ ...finalLatestReplies . map ( ( c ) => ( {
3850 title : `${ c . author } 回复了小组话题《${ title } 》` ,
3951 description : c . content ,
4052 pubDate : timezone ( parseDate ( c . date ) , + 8 ) ,
Original file line number Diff line number Diff line change 8080 "request-promise-native" : " 1.0.9" ,
8181 "staged-git-files" : " 1.3.0" ,
8282 "string-width" : " 4.2.3" ,
83- "supertest" : " 6.3.1 " ,
83+ "supertest" : " 6.3.2 " ,
8484 "tosource" : " 2.0.0-alpha.3" ,
8585 "unified" : " 9.2.2" ,
8686 "vuepress" : " 1.9.7" ,
Original file line number Diff line number Diff line change @@ -13059,10 +13059,10 @@ superagent@^8.0.3:
1305913059 qs "^6.11.0"
1306013060 semver "^7.3.8"
1306113061
13062- supertest@6.3.1 :
13063- version "6.3.1 "
13064- resolved "https://registry.yarnpkg.com/supertest/-/supertest-6.3.1 .tgz#a8ad362fc6f323c88730ac191ce30427dc869088 "
13065- integrity sha512-hRohNeIfk/cA48Cxpa/w48hktP6ZaRqXb0QV5rLvW0C7paRsBU3Q5zydzYrslOJtj/gd48qx540jKtcs6vG1fQ ==
13062+ supertest@6.3.2 :
13063+ version "6.3.2 "
13064+ resolved "https://registry.yarnpkg.com/supertest/-/supertest-6.3.2 .tgz#7780b4b85bb2ea675c05b5cb80fa52f4dbe5a52b "
13065+ integrity sha512-mSmbW/sPpBU6K8w8189ZiHdc62zMe7dCHpC2ktS9tc0/d2DN0FaxNbDJJNFknZD4jCrGJpxkiFoVyemvKgOdwA ==
1306613066 dependencies:
1306713067 methods "^1.1.2"
1306813068 superagent "^8.0.3"
You can’t perform that action at this time.
0 commit comments